Skip to content

Most visited

Recently visited

navigation
Added in API level 1

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. 
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.