1. Are you ready for the Galaxy S20? Here is everything we know so far!

Data spanning multiple activities

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

  1. kas21

    kas21 Lurker
    Thread Starter

    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
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...