Faktor4
Newbie
Hey guys i cant to get this app out on the market, however for certain reasons i cant say what it does yet.
But anyway, i have two .java files:
fileA.java
fileB.java
I initialized a variable "message" in fileA. But i need that variable to be called and recognized in fileB. (I need to know how to make a variable that can be referenced from any file within the app)
The variable "message" is set to an EditText box.
I was told that if i used sharedPreferences, i could take the data from "message", store it, and have fileB access that stored data.
Anyone know how? Thanks in advance
But anyway, i have two .java files:
fileA.java
fileB.java
I initialized a variable "message" in fileA. But i need that variable to be called and recognized in fileB. (I need to know how to make a variable that can be referenced from any file within the app)
The variable "message" is set to an EditText box.
I was told that if i used sharedPreferences, i could take the data from "message", store it, and have fileB access that stored data.
Anyone know how? Thanks in advance