On Mar 2, 5:22 am, Neha <[email protected]> wrote:
> I have tried launching OtherActivity from SingleTaskActivity in both
> these ways:
> Intent explicitIntent = new Intent(this, OtherActivity.class);
> explicitIntent.setComponent(new ComponentName(this,
> OtherActivity.class));
> startActivityForResult(explicitIntent, 0);
>
> Intent implicitIntent = new Intent(Intent.ACTION_VIEW);
> implicitIntent.addCategory("com.sample.singletask.category.FOO");
> startActivityForResult(implicitIntent, 0);
>
> OtherActivity is popped off the stack in both cases.
>
> Am I missing something?
>
The case that works is if you remove the intent_filter completely from
OtherActivty and invoke it with an explicit intent.
--
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