If you are explicitly setting it, you will need to explicitly clear it at
some point, possibly in onDestroy().

Note that you need to be very careful when doing this kind of thing.
Generally the most safe global to store like this is the "currently resumed"
activity, set in onResume() and cleared in onPause().

On Sun, Apr 26, 2009 at 7:59 PM, Neo <mobi.liub...@gmail.com> wrote:

>
> hi guys
>
>    I have a question about finish activity
>
>    When start the activity i will set the activity object to the
> Application, and i will registry it in the Appication
>    app = MyApplication.getApplication(this);
>
>    1. Start Activity A  store A id 0x12345678
>    2. Activity A -> Activity B
>    3. Store B id 0x87654321
>    4. Finish B activity
>    5. but the Activity B object not null in the Application
>
>    i don't not why this problem???
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to