• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Making a really cool app, need help!

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
 
Back
Top Bottom