1.Create a new project named HelloWebView.
2.Open the res/layout/main.xml file and insert the following:
3.Now open the HelloWebView.java file. At the top of the class, declare a WebView object:
Then use the following code for the onCreate() method:
public void onCreate(Bundle savedInstanceState)
This initializes the member WebView with the one from the Activity layout;
requests a WebSettings object with getSettings();
Finally, an initial web page is loaded with loadUrl(String).
4.Because this application needs access to the Internet, you need to add the appropriate permissions to the Android manifest file.
Open the AndroidManifest.xml file and add the following as a child of the