Multiple choice

Which of the following statements is correct about application resources?

  1. All the resources should be placed directly under the root directory.

  2. All the resources should be placed directly under the res/ directory.

  3. You should place each type of resource in a specific directory of your project's res/ directory.

  4. You can define your own user defined directories and place all the resources over there.

  5. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Android requires resources to be organized in specific subdirectories under res/ (like res/layout for XML layouts, res/drawable for images, res/values for strings/colors). Placing all resources directly under res/ or in custom user-defined directories will not work - the build system expects specific subdirectory names.