Which of the following sets the entire Activity window as a WebView?
Which of the following sets the entire Activity window as a WebView?
To set the entire Activity window as a WebView, you need to create a new WebView instance and then pass it to the setContentView method. This replaces the activity's layout with the WebView instance, making it the sole content of the activity. The correct code snippet for this is: WebView webview = new WebView(this); setContentView(webview);. This ensures that the entire screen is occupied by the WebView.
C. WebView webview = new WebView(this); setContentView(webview);