On Sun, Mar 27, 2011 at 2:25 AM, Doug <[email protected]> wrote: > It's not pointless, and please stop telling people that. :-) > > You just have to know when to use it. Use it when you need to store > a context in an object that lives longer than an instance of an activity or > service, but don't want to leak that activity or service. The application > context is perfect for that. >
I suppose that is true. Though IMO a Context is not something that should be stored in an object that outlives an Activity or Service. If you need a Context, one is usually readily available wherever you happen to be and can be passed as a parameter. Do you have a good example of when storing a Context like this is a good idea? I'm just curious. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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

