On Feb 19, 12:49 pm, Mark Murphy <[email protected]> wrote:

> That intent filter is scary. You're basically saying you're able to view
> *anything*.
>

I guess that's what it means!  When I changed the onClick code to this
-

            public void onClick(View arg0) {
                Intent intent = new Intent(Intent.ACTION_VIEW);
                intent.addCategory(Intent.CATEGORY_DEFAULT);
                //intent.setClass(ActivityA.this, ActivityB.class);
                startActivity(intent);
            }

when I press the button it comes up with a selector dialog listing
various activities, including ActivityB.  After going to ActivityB and
then Home and then selecting the app from the Home screen it now goes
back to ActivityA rather than ActivityB (where we left the task).  I
also tried setting the option to make this ActivityB always the target
for the intent, but that didn't change the behavior.

Um.  where are we now?  What SHOULD the Intent filter look like?

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