What you are saying you want is how applications behave by default (try
using the standard applications to see).  You must have done something
different, more than the small snippet of code you included.

On Tue, Mar 10, 2009 at 8:44 AM, Hayden <[email protected]> wrote:

>
> I want my application to resume what it is doing regardless of where I
> press the icon (Home screen, app picker, or running apps).  Right now
> if my app is in the background and I press the icon on the home
> screen, the app restarts with my Main Activity.  Once here, if I press
> the back button the app resumes from the activity it left off before
> it was put in the background.  If it's running in the background and I
> hold the home button and select my app from the current running apps,
> it resumes correctly.
>
> How do I avoid my app from going to my Main activity when it is
> selected from the Home screen or app picker?  I have tried adding the
> following in my Manifest XML file, but it doesn't help:
>
> <activity android:name=".Main"
>                          android:launchMode="singleTask"
>                          android:alwaysRetainTaskState="true"
>                  android:label="@string/app_name">
>
>
> Any help would be greatly appreciated!
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to