You aren't supplying enough code to understand what you are doing (who is calling getApplication()?). But I'll see again -- if you don't see the pointer to null, then yes, you will never get a null back.
On Sun, Apr 26, 2009 at 11:32 PM, Neo <mobi.liub...@gmail.com> wrote: > > public static MyApplication getApplication(Activity activity) { > // TODO should this be synchronized? > if (app == null) > { > > initialize(activity); > } > > > mActivity = activity; > return app; > } > I means if i finish the Activity B, The Activity B object(mActivity) > is not null > > > -- 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 -~----------~----~----~----~------~----~------~--~---