Questions tagged as 'arrayadapter'

1
answer

FATAL EXCEPTION: main ... Load SQLite query to arrayList and pass it to Recyclerview

Hi, I have a project in Android and what I need is to pass the data of a cursor, that is, a query to an arraylist, and then pass that array to another to "map" each column of the cursor in a class to show the data in a recyclerview. I really hop...
asked by 31.08.2018 / 20:04
0
answers

Problem with Searchview android

Good to the problem, first I have a Searchview in my actionbar . I have a listview with a arraydapter custom which I fill with data that I send from the webservices and I through the class Asynctask full listivi...
asked by 09.06.2016 / 20:25
1
answer

Error inserting data from Sqlite to Arrayadapter

I have a detail that with my app that I have in android studio. The detail is that I get some data through webservices and store them in a local bd sqlite and I want to show them in a listview with a custom adapter, the problem is when the qu...
asked by 07.07.2016 / 23:02
2
answers

Problem with Gridview shows com.mac.fablab.fablab.Objetocurso@53683d4c

I have a problem with the ArrayAdapter inside a Fragment, apparently if I display the number of objects inside my ArrayList but it shows me the following: This is my Fragement_2.Java file public class Fragment_2 extends Fragment { Lis...
asked by 27.08.2017 / 21:15
2
answers

ListView.setAdapter "null Object Reference"

I'm implementing a ListView loaded with an External database, and I'm getting the data with a JSON This project had it running smoothly in an Activity, but wanting to implement it in a fragment marks me these errors: This is the Code that...
asked by 14.12.2016 / 03:05
1
answer

Android - Update ArrayAdapter from a new array

I need to know how to update a ListView from an own ArrayAdapter by means of the array that I sent it, I explain: I have this JSON: [{"id":"1","user":"117270122","mensaje":"Mensaje de prueba","condicion_visto":"0"},{"id":"2","user":"117270122...
asked by 16.05.2018 / 00:19
1
answer

Recyclerview shows repeated data

I have 2 records inserted in a SQLite table and I load them into an array to show them in a recyclerview with an Adapter, but in the recyclerview it shows me the second record twice, here I leave the code: @Override public View onCreateVie...
asked by 16.09.2018 / 05:55
2
answers

Arrayadapter and android fragment

I have a fragment with the following code, the problem I have is that the lines ArrayAdapter NoCoreAdapter = new ArrayAdapter(this,android.R.layout.simple_list_item_1, data); and ruta = (Spinner) ruta.findViewById(R.id.spinner2); I ge...
asked by 31.10.2016 / 21:39
0
answers

Share a captured image from an array of images on android

I would like to share the image seen at that moment in the ViewPager , which will be taken from an array of images named sliderImagesId . Here are the files of the app. <?xml version="1.0" encoding="utf-8"?> <android.support...
asked by 19.09.2016 / 20:40
2
answers

App adapter failed to ask test questions

I am doing an App of test questions and when making the adapter I must have an error because when I run the App it closes automatically. The main activity is the following: public class ActivityTest extends AppCompatActivity { private Butt...
asked by 15.01.2017 / 19:40