I have a ListView in my app, and every week, I am adding a new item to it. But I don’t want my user to update that whole application just for that. Is there anyway to solve this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The data for list view is typically driven using an adapter, which intern pulls it from a database/some other form of storage.
As long as you put the data in your storage, and have code to pull everything and give it to your adapter, I think the list view will display everything.
Just make sure you call notifyDatasetChanged().
Please refer to documentation here:
http://developer.android.com/reference/android/widget/ArrayAdapter.html#notifyDataSetChanged()