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...
Similar Threads - Data spanning multiple
  1. aprengo
    Replies:
    7
    Views:
    225
  2. David Ralph
    Replies:
    3
    Views:
    593
  3. TheOneGuy
    Replies:
    0
    Views:
    318
  4. Crispified99
    Replies:
    3
    Views:
    315
  5. MonstaMash69
    Replies:
    7
    Views:
    496
  6. minimum nebula
    Replies:
    0
    Views:
    771
  7. JaySantos
    Replies:
    1
    Views:
    539
  8. Jimbo84
    Replies:
    8
    Views:
    1,684
  9. Petra van Liere
    Replies:
    5
    Views:
    468
  10. DJNL
    Replies:
    2
    Views:
    549

Share This Page

Loading...