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ƃ ɟıʇɐ

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to