28 questions
0 votes
2 answers
65 views
Pass MatrixCursor of data from Activity to Fragment
The core of this question is how to send a MatrixCursor of data from an activity to a fragment. I am doing my search functionality in my activity and am returning a fragment which contains a list ...
0 votes
0 answers
193 views
How does "selection" and "selectionArgs" clauses work for ContentProvider
I have a custom class with implementation: private static class Item { String userID; String userEmail; Item(String userID, String userEmail) { this.userID = userID; this....
-2 votes
2 answers
39 views
Button showing Internal address of button rather than setText text
Every row in my listview has 2 buttons. The text to be shown depends on some characteristics, and hence I want to change the text on the Button. However, I am not only not able to change the text, but ...
0 votes
0 answers
767 views
Android search view auto suggest clicked bring related data
I know there is a lot of solutions suggested and most of them i got understand them clear use AutoCompleteTextView and i want usesearch view as small developer i try to find the solution to fit my ...
0 votes
1 answer
507 views
Android MatrixCursor
I am trying to get a basic matrix cursor running, but for some reason the list remains empty. Would appreciate if someone could spot what may be wrong with the code? String []columns = new String[...
2 votes
2 answers
5k views
SearchView: Getting the selected item from the suggestion listener
I have a search view that has the suggestions populated by a MatrixCursor (because I already have an array of Strings). However I would like to get which item is being selected by the user. So far I ...
1 vote
1 answer
268 views
Difference between list and matrixcursor (Android)
I'm trying to make a new android project in which I collect my data from an online JSON file. If I look on the internet, I can see a lot of examples where they are storing the collected data in a ...
0 votes
2 answers
716 views
Android - Using SimpleCursorAdapter in AutoCompleteTextView gives CursorIndexOutofBoundsException when user selects 3rd suggestion onwards
Sorry for the mouthful of a title, I have to cut it down because I exceeded the 150 character limit. I have an AutoCompleteTextView (ACTV) and I am using a SimpleCursorAdapter since the normal ACTV ...
0 votes
1 answer
124 views
Android Cursor odd and even rows into MatrixCursor
Hee guys, I got 2 ListViews, one for the left side and one for the right side. However I have one Cursor with values. Now I want to get the even rows from the cursor and put that in a matrixcursor to ...
0 votes
0 answers
216 views
setSuggestionAdapter not displaying text, though the List gets displayed
I have used the Google places API to retrieve results through the implementation of setOnQueryTextListener of the searchView widget, then I am creating a SimpleCursorAdapter by using the results ...
1 vote
0 answers
77 views
ViewBinder's setViewValue with a MatrixCursor instead of a Cursor
I am using a SimpleCursorAdapter with a MatrixCursor to load data from my server into a listview. I want to customize each item using a ViewBinder. I noticed that setViewValue has the following ...
3 votes
0 answers
931 views
Fill a ListView using SimpleAdapter with Maps vs SimpleCursorAdapter with MatrixCursor
My Android application uses a ListView with simple two-line rows. The list is filled in using simple static data. I am aware of two different solutions for filling in the list in these circumstances: ...
6 votes
1 answer
3k views
Matrixcursor with non-db content provider
I have a content provider that returns a MatrixCursor for the query() method. Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { MatrixCursor ...
0 votes
1 answer
417 views
how to get data back from onPostExecute
I have a class which is implementing FilterQueryProvider and having an inner class which is extending AsyncTask. I am using this inner class to call a REST API and getting data successfully in ...
5 votes
1 answer
5k views
Using addrow for MatrixCursor, how to add different object types?
I am trying to input data from a List<ParseObject> to a cursor. ParseObject documentation can be found here. I found out that you can use MatrixCursor to do this, referring to helpful sites: ...