Though typically the best solution is to instead pass the state you want from one activity to another, it's kind of viewed as bad practice to keep a lot of state in your Application object.
kris On Thu, Feb 16, 2012 at 11:55 PM, moktarul anam <[email protected]> wrote: > there are many way to access. > best : create one class extent Application. and variable declaration > in this class will be accessible through out the application / > activity > > On Feb 16, 10:17 pm, amit pandey <[email protected]> wrote: >> how to use a variable across different activities > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

