How to Declare a WebView

WebView was added in API Level 1
WebView: A View that displays web pages.

1. Add the below import to the imports section.

import android.webkit.WebView;
2. Add the below line in the onCreate method, another method, or declare as a class variable.