Skip to content Skip to sidebar Skip to footer

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 coll

Solution 1:

I also prefer to have model classes that can be created from JSON data along with a custom ListAdapter for those classes.

However, there are components such as SearchView that specifically require a CursorAdapter i.e. for search suggestions. In those cases. it's easier to put the data into a cursor like a MatrixCursor, pass that to a SimpleCursorAdapter and be done with it.

Post a Comment for "Difference Between List And Matrixcursor (android)"