Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start the android browser

Tags:

android

I need directions on how to start the android browser through code . Thanks !

like image 891
rantravee Avatar asked Dec 17 '22 01:12

rantravee


1 Answers

If you want a fully blown browser try with :

   startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://Yoururl.com")));

Have a look to ACTION_VIEW Intent.

If you want to simply display some HTML try using WebView:

WebView webview = new WebView(this);
setContentView(webview);
webview.loadUrl("http://yoururl.org/");
like image 97
systempuntoout Avatar answered Dec 24 '22 06:12

systempuntoout