Whenever the data for your adapter changes you need to call notifyDataSetChanged() on the adapter... This triggers the listview to update itself.
Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Sep 27, 2012 at 11:58 AM, Subin Sebastian <subinsebast...@gmail.com>wrote: > Hey Android Folks, > > I'm an independent developer working on a small social app project. I have > my custom *Application* class extended from Application. And I have a > list view adapter extended from the *BaseAdapter*. My list of data > resides inside the custom application class. This is there located, to ease > the sharing of data between activities. Using parcels or putting extras > across activities was not very easy to use in my use case. So I decided to > put the list of data inside the app class. On one activity, I have a > listView which lists all this data. I created an adapter for this. In the > activity class, I also have a refresh button, which does nothing but fetch > more records from my server and then adds those records to the data list in > the application class. This happens in a background thread. But when I do > this I get the following exception log : https://gist.github.com/3795342 > And the source code for the adapter class is here : > https://gist.github.com/3795389 > > I have simplified the code for better understanding. > Can someone help me out to fix this issue? > -- > Thanks in Advance > -- > Subin Sebastian > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en