First,
launch Android Default browserIn 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. For more information on intent, please refer to "common intent"
Example 1
Intent Intent =newintent (); Intent.setaction ("Android.intent.action.VIEW"); =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 browserIn the Android program we can launch the specified browser by sending an explicit intent. Launch Android native browser
Example 2
Intent Intent =newintent (); Intent.setaction ("Android.intent.action.VIEW"); =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 "
There are many browsers installed on the system, can you specify a browser to access the specified page? Please explain the original.