Hi,

I'm trying to control my app such that there's only one instance of it
on the system at any time. I know the definition of an application is
flexible, but this is what I'm going for:

-Main entry-point activity:
    launchMode="singleTask"
    alwaysRetainTaskState="true"

-Other activities created from main activity:
   launchMode="singleTop"
   always launched internally using FLAG_ACTIVITY_CLEAR_TOP

the idea is that once the user launches the app, accessing it again
via the app launcher, or desktop, should kick them back to an already
running instance (if any). If paused, the task state should be
completely saved.

When running on 1.5, I get the following behavior: app launch works
fine, but then if I put the app in the background via the home button,
then return to the app - any state is cleared and I return back to the
entry-point activity. Is this a result of the "singleTask" flag? I
thought an app paused in the background should return to its previous
state when being resumed?

Thanks

-- 
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