Android Application Development (AND-401) — Question 80

When including a text file in your application to read from as a resource, what is the recommended location of such file?

Answer options

Correct answer: C

Explanation

The correct location for including a text file as a resource is 'res/raw', as this directory is specifically designated for raw asset files that can be accessed as a stream. The other options, such as 'res/anim' and 'res/values', serve different purposes, such as animations and resource values respectively, and are not suitable for raw text files.