First, launch the Android default browser in the Android program we can launch the system default browser by sending an implicit intent. If the phone itself has more than one browser installed and the default browser is not set, the system will let the user choose which browser to use to open the connection.
Intent intent =newIntent();
intent.setAction("android.intent.action.VIEW");
Uri content_url =Uri.parse("http://www.163.com");
intent.setData(content_url);
startActivity(intent);
This way, Android will be able to invoke the default browser access from the phone.
Second, launch the specified browser in the Android program we can launch the specified browser by sending an explicit intent. Launch Android native browser
Intent intent =newIntent();
intent.setAction("android.intent.action.VIEW");
Uri content_url =Uri.parse("http://www.163.com");
intent.setData(content_url);
intent.setClassName("com.android.browser","com.android.browser.BrowserActivity");
startActivity(intent);
Just modify the corresponding application in Intent.setclassname ("Com.android.browser", "com.android.browser.BrowserActivity") PackageName And the activity to launch can launch other browsers to the UC browser ":" Com.uc.browser "," Com.uc.browser.ActivityUpdate "Opera browser:" Com.opera.mini.android "," Com.opera.mini.android.Browser "QQ Browser:" COM.TENCENT.MTT "," com.tencent.mtt.MainActivity "
From for notes (Wiz)
Android Blitz: There are multiple browsers installed on the system, can you specify a browser to access the specified page