On Jan 25, 12:54 am, jotobjects <[email protected]> wrote:
> If Activity1 and Activity2 are part of the same task and Activity2 is
> foreground when pressing the Home key, then I thought that choosing
> that app on the Home screen would return you to Activity2.
Something to remember is that "choosing that app on the Home
screen" (or in the Launcher drawer) is really clicking on a shortcut,
and that shortcut is specifically to the activity with this in your
manifest:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
It's also true (as another poster said) that installing your app from
Eclipse can change what its default activity is. If you want to
accurately simulate the behavior that your users will see, you need
to build an APK as you would for release, install it through the
command line, and see what that does.
String
--
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