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
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