Android browser development example sharing
This article mainly explains the development example of Android browser, which has three parts: starting the default Android browser, specifying the browser to access and opening the local HTML file.
1、 Launch Android default browser
Java code
In this way, Android can call the default browser of the mobile phone.
II. Specify a browser to access
1. Specify the browser access that comes with Android ("com. Android. Browser": packagename; "com. Android. Browser. Browseractivity": start the main activity)
Java code
2. Start other browsers (of course, the browser must be installed on the machine)
You can call other browsers by modifying the following corresponding packagename and main startup activity.
intent. setClassName("com.android.browser","com.android.browser.BrowserActivity");