Update ListView Based On SQLite Backed ContentProvider
I'm a new Android Developer and seem to have gotten in a little over my head. I am trying to make a listView update when I add more content to the list. The ListView is based off
Solution 1:
You can check loader concept. You can start with http://www.vogella.com/articles/AndroidSQLite/article.html#todo
Following are other 2 good tutorials http://mobile.tutsplus.com/tutorials/android/android-sdk_content-providers/
http://mobile.tutsplus.com/tutorials/android/android-sdk_loading-data_cursorloader/
Solution 2:
Hey here is one example to insert data into sqlite database and display it in list view. Have a look at it
The idea is simple insert data into database and on click of view button initialize List view with arraylist that contains data already inserted.
You can ask if you have any further queries.
Post a Comment for "Update ListView Based On SQLite Backed ContentProvider"