Exam AND-401 All QuestionsBrowse all questions from this exam
Question 92

Which of the following sets the entire Activity window as a WebView?

    Correct Answer: C

    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.

Discussion
MmadiOption: C

C. WebView webview = new WebView(this); setContentView(webview);