Skip to content Skip to sidebar Skip to footer

Android: Display Multiple Pieces Of Cursor Data Together In Textviews Instead Of A Listview

I am able to accomplish pulling a random row of different column indexes and populate a ListView in my Main Activity with the data using a custom ArrayAdapter (List).

Solution 1:

After much research, I solved my problem. I ended up using the information contained in one post on stack over flow and another on GitHub; both about CursorAdapters. Bottom line, I created a cursor adapter instead of an array adapter and it woks perfectly. The posts are here in case anyone encounters this same problem:

Cursor adapter and sqlite example

https://github.com/codepath/android_guides/wiki/Populating-a-ListView-with-a-CursorAdapter

Post a Comment for "Android: Display Multiple Pieces Of Cursor Data Together In Textviews Instead Of A Listview"