How to Instantiate a WebView

WebView was added in API Level 1

1. Declare a WebView

2. After you declare the WebView object, add this line below to instantiate it. This will instantiate a WebView named myWebView.

myWebView = new WebView(this);

3. Compile and run!