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
Post a Comment