Skip to content Skip to sidebar Skip to footer

Android ListView With SQLite

I'd like to refresh the Listview items. These items are populated from SQLite database. My code is below public class Weeve extends Activity { private String[] lv_arr; pr

Solution 1:

You can do that using Adapter.notifyDataSetChanged().

However, I find your code slightly off. You're fetching rows from the database using a cursor, just to create a new ArrayAdapter for the row values. Why not use a CursorAdapter to back your list? That's what it's meant for.


Solution 2:

make sure all your activities are in the manifest


Post a Comment for "Android ListView With SQLite"