java - Declaring a global variable to use in all activities -
i creating custom class in main application class. lets mainaccount
.
now, creating many activities. want mainaccount
variable in every activity, how can that? 1 way put in intent , pass each activity. there better way, making global etc?
best regards
have thought using preferences? great resource more info is. http://mobile.tutsplus.com/tutorials/android/android-application-preferences/
or can create class extends application demostrated http://www.helloandroid.com/category/topics-covered/global-variables
Comments
Post a Comment