call finish() in either onPause(), onStop(), or onDestroy() depending on the
needs of your app.  You can read more about activity lifecycles and the
difference between these three methods here:

http://developer.android.com/guide/topics/fundamentals.html#actlife
http://developer.android.com/reference/android/app/Activity.html

Hope this helps,
Justin

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Thu, Jan 14, 2010 at 4:25 AM, Atif Gulzar <[email protected]> wrote:

> I have game which have mainly two Activities (SplashActivity and
> GameActivity)
>
> I show some animation on splash screen and then there is a button on splash
> screen when clicked it starts GameActivity
>
> 1. When user press home button while on GameActivity. And then launch my
> application again from home screen, I want to show SplashActivity again
> instead of GameActivity. I know the concept of activity task management of
> Android, but how can I overide it to get desired result.
>
>
>
>
> --
> Best Regards,
> Atif Gulzar
>
> I ◘◘◘◘ Unicode, ɹɐzlnƃ ɟıʇɐ
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to