Or, alternatively to Justin's suggestion, you can add the following
attribute to the SplashActivity definition in your
AndroidManifest.xml:

android:clearTaskOnLaunch=true

This will ensure that SplashActivity is always the activity shown when
your app is launched. There are lots of settings like this described
in the guide:

http://developer.android.com/intl/fr/guide/topics/manifest/activity-element.html



On Fri, Jan 15, 2010 at 2:29 PM, Justin Anderson
<janderson....@gmail.com> wrote:
> 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 <atif.gul...@gmail.com> 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
>> android-beginners+unsubscr...@googlegroups.com
>> 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
> android-beginners+unsubscr...@googlegroups.com
> 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
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to