Multiple choice technology platforms and products

Android resources stored in_______ of Android Application directory structure, are not compiled into binary format.

  1. /res/raw

  2. /res/xml

  3. /res/layout

  4. Both, a & b above

  5. None of above

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

The /res/raw directory is specifically designed for files that should NOT be compiled into binary format. Files placed here are copied to the device as-is. In contrast, /res/xml files are parsed and compiled into a binary XML format, and /res/layout files are also compiled into binary format during the build process.

AI explanation

Files placed in /res/raw are packaged into the APK as-is and are not compiled into Android's binary resource format; you access them via openRawResource() using their raw byte stream. In contrast, resources under /res/xml and /res/layout are compiled into a binary form and given integer IDs in R.java so the system can efficiently parse them at runtime.