• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Data spanning multiple activities

kas21

Lurker
May 20, 2010
3
0
My application uses a database to maintain a list of objects. The primary activity simply displays the details about those objects. From it, there are two other activities that can be called--one to add an object and another to "manage" the objects.

If I make a change to the DB from one of the two secondary classes, what is the best way to update the primary activity? I do not want to pass a cursor around. Right now I am issuing a "refresh flag" in the intent back to the main activity but that seems inefficient. Is there anyway to have a "global" cursor to span all activities or is that also a bad idea?

Thanks!

KAS
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones