I think this is an Android bug. I have seen this so many times on differnt 
devices (more frequently on older ones). Common pattern is more often than 
not tapping the app icon as normal will launch the MAIN LAUNCHER activity 
on the top of the existing stack but occasionally will resume - i see this 
much less on ICS/JB (if at all). I have seen this across many apps 
including the one I am currently working on. On my JB device it works as 
Diane says it should - on my 2.3 if has the issue described above. Quite 
annoying. Probably a few potential solutions but its at least worth 
clearing the existing stack on launch to save the back button making no 
sense (especially if your app has some gateway login or something where 
back press from a login screen would be taking you to a logged in state 
instead of back to the home screen)

On Tuesday, 10 March 2009 16:44:10 UTC, Hayden 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!

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to