Android Application Development (AND-401) — Question 18
Which of these files contains text values that you can use in your application?
Answer options
- A. AndroidManifest.xml
- B. res/Text.xml
- C. res/layout/Main.xml
- D. res/values/strings.xml
Correct answer: D
Explanation
The correct answer is D, as 'res/values/strings.xml' is specifically designed to store string resources for use throughout the application. The other options serve different purposes: A is for app configuration, B is not a standard resource file, and C is for layout definitions, not text values.