Hi, I already tried both and i am not looking for Activity.finish(). I am using service instead.
I got answer from Dianne from another post(Can we hide Activity). Thank you very much. On Apr 23, 4:32 am, Dianne Hackborn <hack...@android.com> wrote: > On Wed, Apr 22, 2009 at 2:39 PM, Yusuf T. Mobile > <yusuf.s...@t-mobile.com>wrote: > > > If you want to "hide" you app window in Android, you may want to call > > Activity.finish() > > >http://developer.android.com/reference/android/app/Activity.html#finish()<http://developer.android.com/reference/android/app/Activity.html#fini...> > > Just to be clear, this doesn't hide the window, it completely closes and > destroys it, along with the activity it came from. > > > If you need to continue running even when the app window is not > > visible (because then it's not running), use a service. > > > http://developer.android.com/reference/android/app/Service.html > > This is certainly a good suggestion. :) > > -- > 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-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---