1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Global variable


Last Updated:

  1. shirkkan

    shirkkan New Member This Topic's Starter

    Joined:
    Oct 31, 2010
    Messages:
    3
    Likes Received:
    0
    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!
     

    Advertisement

Share This Page

Loading...