Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
Added in API level 1
package

android.content.res

Contains classes for accessing application resources, such as raw asset files, colors, drawables, media or other other files in the package, plus important device configuration details (orientation, input types, etc.) that affect how the application may behave.

For more information, see the Application Resources guide.

Interfaces

XmlResourceParser The XML parsing interface returned for an XML resource. 

Classes

AssetFileDescriptor File descriptor of an entry in the AssetManager. 
AssetFileDescriptor.AutoCloseInputStream An InputStream you can create on a ParcelFileDescriptor, which will take care of calling ParcelFileDescritor.close() for you when the stream is closed. 
AssetFileDescriptor.AutoCloseOutputStream An OutputStream you can create on a ParcelFileDescriptor, which will take care of calling ParcelFileDescritor.close() for you when the stream is closed. 
AssetManager Provides access to an application's raw asset files; see Resources for the way most applications will want to retrieve their resource data. 
AssetManager.AssetInputStream  
ColorStateList Lets you map View state sets to colors. 
Configuration This class describes all device configuration information that can impact the resources the application retrieves. 
ObbInfo Basic information about a Opaque Binary Blob (OBB) that reflects the info from the footer on the OBB file. 
ObbScanner Class to scan Opaque Binary Blob (OBB) files. 
Resources Class for accessing an application's resources. 
Resources.Theme This class holds the current attribute values for a particular theme. 
TypedArray Container for an array of values that were retrieved with obtainStyledAttributes(AttributeSet, int[], int, int) or obtainAttributes(AttributeSet, int[])

Exceptions

Resources.NotFoundException This exception is thrown by the resource APIs when a requested resource can not be found.