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