Android Application Development (AND-401) — Question 94
Which of the following is not true about using a WebView in your application?
Answer options
- A. You can retrieve WebSettings with getSettings(), then enable/disable JavaScript
- B. You need to add permission "android.permission.ACCESS_NETWORK_STATE"
- C. You use loadURL to load a webpage
- D. You use loadData to load HTML
Correct answer: B
Explanation
The correct answer is B because using a WebView does not require the 'android.permission.ACCESS_NETWORK_STATE' permission. Options A, C, and D accurately describe functionalities of WebView, such as retrieving settings, loading URLs, and displaying HTML content.