Android Application Development (AND-401) — Question 97
Which of the following is NOT true about a content provider?
Answer options
- A. It manages access to structured data.
- B. It cannot be used from inside an Activity.
- C. It facilitates access to Android’s SQLite databases.
- D. To access data in it, method getContentResolver() of the application’s Context is used.
Correct answer: B
Explanation
Option B is correct because a content provider can indeed be accessed from within an Activity. Options A, C, and D are true statements about content providers, highlighting their role in managing structured data and facilitating access to SQLite databases using the getContentResolver() method.