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

Global variable

Discussion in 'Android Apps & Games' started by shirkkan, Oct 31, 2010.

  1. shirkkan

    shirkkan Lurker
    Thread Starter

    Hello!

    I have two activities, and I want them to share a global variable, so one of them shows it in the screen, and the other activity change it's value.

    I have tried everything I have found on the internet for sharing global variables, but I always tell me an application error when I run it on the phone.

    I would like to know how can I share that variable between the two applications.

    Thanks in advance!
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Global variable
  1. Gianni Mitchell
    Replies:
    2
    Views:
    723
  2. ironass
    Replies:
    1
    Views:
    3,569
  3. ironass
    Replies:
    1
    Views:
    3,847
  4. ironass
    Replies:
    1
    Views:
    3,709
  5. ironass
    Replies:
    3
    Views:
    2,478
  6. ironass
    Replies:
    4
    Views:
    5,450
  7. ironass
    Replies:
    4
    Views:
    5,577
  8. ironass
    Replies:
    2
    Views:
    2,789
  9. ironass
    Replies:
    2
    Views:
    2,678
  10. ironass
    Replies:
    2
    Views:
    2,578

Share This Page

Loading...