Please read the documentation on process lifecycle: http://developer.android.com/guide/topics/fundamentals.html#proclife
On Thu, Sep 10, 2009 at 10:01 PM, Atif Gulzar <[email protected]> wrote: > Hi all, > > I have some singleton objects in my android project. But these singleton > object are not initialized to null once I close my application on emulator > and run it again. But if I close the emulator and run my application again > these singleton objects are initialize to null. Please help. Thanks > > the structure of my singleton objects is something like this > > public final class TJCConfig > { > private static TJCConfig config = null; //this is the line creating > problem > > private TJCConfig() > { > // some initializationn here > } > > > public static TJCConfig getTJCConfigInstance() > { > if( config == null ) > config = new TJCConfig(); > return config; > } > > ... > > } > > > > -- > Best Regards, > Atif Gulzar > > I ◘◘◘◘ Unicode, ɹɐzlnƃ ɟıʇɐ > > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

