There is probably nothing you can do about this at your point, as far as I
know.  This is all done inside of the browser -- the browser is one single
activity, and all of the "windows" and page management is done within that
activity.  It just happens to decide, each time that activity receives a new
intent, to create a new "window" for it.

On Wed, Dec 10, 2008 at 5:10 PM, Mark Murphy <[EMAIL PROTECTED]>wrote:

>
> In an app, I am launching the built-in Browser activity via:
>
> startActivity(new Intent(Intent.ACTION_VIEW,
> Uri.parse("http://www.google.com";)));
>
> The first time you do this, it starts another "window". This doesn't
> faze me.
>
> However, if you back-arrow out of the browser back into my application,
> and trigger startActivity() again, it creates a third window. Back-arrow
> and trigger startActivity() again, it creates a fourth window. And so on.
>
> I don't mind adding one more window to the Browser, but adding one per
> startActivity() call seems evil.
>
> My guess is that I need to use a FLAG_ACTIVITY_*, or combination of
> same, with my Intent to stop this behavior. However, I've tried a few,
> and nothing has worked.
>
> Any thoughts?
>
> Thanks in advance!
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 Available!
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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