March 2013
Beginner to intermediate
580 pages
16h 11m
English
Now that you are more familiar with the Android resource system, here are some system requirements you should know about when it comes time to build your own apps.
Resource names must be lowercase and must not have any spaces – one_small_step.wav, app_name, armstrong_on_moon.jpg.
Whether you reference a resource in XML or code, the reference does not include the file extension.
For example, you refer to @drawable/armstrong_on_moon in your layout files and R.drawable.armstrong_on_moon in your code.
This means that you cannot rely on extensions to distinguish identically named resource files in the same subdirectory.
Resources must be saved in a subdirectory of
Read now
Unlock full access