AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 Exam - Question 92


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

Show Answer
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

1 comment
Sign in to comment
MmadiOption: C
Dec 31, 2022

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