Hi all.
It seems there is a problem with a shortcut created by Play store during installing new app. (As you know, If user turns on the option 'Auto add widget' in the settings for play store, shortcut for executing new app is automatically created on home screen.) - Reproduce step is as below : 1). Download and install "Google Play Music" from market. 2). Check the newly added shortcut for "Google Play Music" on home screen. 3). Click shortcut for 'Google Play Music' at home screen (or application screen). 4). In the screen of Google play music, just press the menu button and then go into settings. 5). In the 'Music settings', press home key to go to home screen 6). Click shortcut for "Google Play Music" on home screen - Problem occurs here : Showing initial screen for 'Google music'. if you press back-key, 'Music Settings' screen will be showed and then press back-key, you will see the initial screen for 'Google music' again. - Expected result : Showing 'Music Settings' screen (activity). And I found that the shortcut has an intent which contains not only component name but also 'package'. 1. #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;package=<package name>;component=<component name>;end But this 'package' value is needless and causing side-effect because It doesn't guarantee the result for keeping current activity stack which comes to foreground from background. (It seems a bug with Activity manager.) As long as there is no particular flag settings for activity, the curren running app should keep its TaskRecord (activity stack for process) after restart from home screen when user clicks a shorcut again. To solve this problem with PlayStore, Above intent value should be changed to 2 or 3 as below : 2. #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;component=<component name>;end 3. #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=<component name>;end Is there any different idea of this? Regards, Wonsuk. -- -- 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.

