Hi, I have a TabActivity with Activity "B" on Tab1 and Activity "C" on Tab2. Both extends Activity "A" where I do the most. They use the same kind of data. Activity B is using data thats state is "active" and Activity C is using data in state "finished". So far so good...
Now I have the possibility to finish an active item or to reactivate a finished item. When I do this, the item will removed from the ListAdapter of the view and I refresh my view. The items where updated in the database too. Everything works fine, but now my concern: When the state of data changes it should be displayed in the other activity (B <-> C). Is it possible to refresh my data without fetching all of them from database? Now I check with each TabChange if the cursor size of my select differs from my list adapters size. If yes, then clear the list adapter and rebuild it completely. I think this is not a "clean" efficient way. My aim was to fetch all data at onCreate() and then work with the list adapter so be efficient and save battery where I can. I've got an idea in this moment: there is an activity manager. maybe I can fetch activity C from activity B and call a method with the given row ids to make a database refresh for activity C with every state change!? Hope someone can help and discuss ;-)! -Danny S. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

