Data spanning multiple activities

Discussion in 'Application Development' started by kas21, May 20, 2010.

  1. kas21

    kas21 New Member
    5

    May 20, 2010
    3
    0
    5
    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
     

    Advertisement

Share This Page

Loading...