On Mar 4, 9:54 am, Jake Colman <[email protected]> wrote: > So your suggestion is that I extend the Application class using the > singleton pattern? And my extension saves 'this' (the context) as a > static member of my singleton? So now I have to see how to extend the > application class.
Yes, indeed. Extend android.app.Application. In your manifest, your <application> tag refers to the class that should be constructed for the Application. It's usually left to be the default, Application, but you simply name your Application extension class there, and Android constructs your class instead of the default. It gets its own onCreate()/onDestroy() lifecycle that spans all 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

