Friday, September 3, 2010

[android-developers] Re: live singleton after ending activity

just by pressing back button singleton/activity is not
destroyed....the activity is still in the activity stack ....YOu can
override the back button and call finish for that.

On Sep 1, 10:19 pm, siva <sivaraj.r...@gmail.com> wrote:
> Hi Firends,
>
> I have a singleton in an activity. When I end my application (like
> pressing back button), and start it again after some time, the
> singleton is not recreated, but is holding previous state. Singleton
> is not destroyed if the application is destroyed? Do I have to null
> its static members in onDestroy() to avoid memory leak? Thanks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment