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

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

    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
MmadiOption: B

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