open browser to web page URL via intent

5 votes · 3 comments

Start a new activity to browse to a given url.

raw ·
copy
· download
Intent viewIntent = new Intent("android.intent.action.VIEW", Uri.parse("http://www.novoda.com")); startActivity(viewIntent);
Add a comment

3 Comments

Yes. That is nice. Now, when there is more then one browser installed and no default set, it pops up a box asking which one to open it with. How do I make it go straight to stock browser, without asking, and without setting the stock browser as default browser?

Reply · Nov. 18, 2011, 6:15 p.m.

What style of maternity clothes will be most flattering and comfortable as my belly grows? Provide online to buy maternity dress, source: www.fashionmaternitydress.com www.bangaccessory.com

Reply · Jan. 12, 2012, 7:24 a.m.

Thank you.

Reply · March 12, 2012, 3 a.m.