AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 Exam - Question 95


Which of the following is not true about using a WebView in your application?

Show Answer
Correct Answer: B

To use a WebView in an Android application, it is necessary to add the INTERNET permission in the Android Manifest file to allow the Activity to access the Internet. The permission android.permission.ACCESS_NETWORK_STATE is not required for using a WebView. Retrieving WebSettings with getSettings() to enable or disable JavaScript, using loadURL to load a webpage, and using loadData to load HTML are all correct methods related to working with WebView.

Discussion

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

B. You need to add permission "android.permission.ACCESS_NETWORK_STATE"