Global variables in Android -


is possible define, in android, variables shared between more activities? tried use "special purpose" classes, looking best-pratice.

i looked similar questions, didn't find exact answer question.

if you're looking send variable 1 activity next, put in intent. if have data needs shared between activities (such login information or key data structures used most/all activities) should use singleton pattern.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -