On Feb 19, 2:11 pm, jotobjects <[email protected]> wrote:
> // 2-This does not work - exception is "can't find Activity to handle
> Intent"
> Intent intent = new Intent(Intent.ACTION_VIEW);
> intent.addCategory("foo.singletask.intent.category.FOO");

Fixed that problem - if a category is listed in the <intent_filter>
then CATEGORY_DEFAULT is required to also to be listed (not sure
why).  This is the intent_filter that works -

    <action android:name="android.intent.action.VIEW" />
    <category android:name="foo.singletask.intent.category.FOO" />
    <category android:name="android.intent.category.DEFAULT" />

RECAPPING THE ORIGINAL SUBJECT:

+ For launchMode=singleTask if there is an intent_filter in the
manifest the task stack is always cleared after returning to Home and
re-launching (returns to main activity instead of last activity).

+ For launchMode=standard re-launch from Home instead returns to last
activity in task (as expected).

+ If there is no intent_filter listed then even with
launchMode=singleTask re-launch from Home returns to the last activity
in the task.

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