That is a bogus Intent; it is just blind luck that it happens to only run into the browser as something that happens to match it, and you can't count on that doing what you want anywhere else.
I don't believe there is a generic action to start "the browser;" you are supposed to start it by asking it to view a URI. On Thu, Nov 18, 2010 at 2:39 PM, jotobjects <jotobje...@gmail.com> wrote: > I want to invoke the internet browser app without giving it a URL to > open. I have tried a couple of things. What seems to work is this - > > Intent webIntent = new Intent(Intent.ACTION_MAIN); > webIntent.addCategory(Intent.CATEGORY_LAUNCHER); > webIntent.addCategory(Intent.CATEGORY_DEFAULT); > webIntent.addCategory(Intent.CATEGORY_BROWSABLE); > context.startActivity(webIntent); > > Is there another or better Intent to use? Is it good practice to use > the Launcher Intent for an app in this way? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en