Stay organized with collections
Save and categorize content based on your preferences.
android
Contains resource classes used by applications included in the platform and defines application
permissions for system features.
You can use some resources directly from these R
classes in your own
applications, but you should generally use only resources that you've provided directly in your
application, in order to provide a cohesive application package that has no external dependencies.
In particular, you should not use drawable resources from the android
package, because they
may change between platform versions, causing unforeseen conflicts with your design. Typically,
styles
are the only resources you should use directly from these
resources.
For information about using resources, see the Application Resources developer guide.
Classes
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# android\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nandroid\n=======\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/package-summary \"View this page in Kotlin\") \\|Java\n\nContains resource classes used by applications included in the platform and defines application\npermissions for system features.\n\nYou can use some resources directly from these [R](/reference/android/R) classes in your own\napplications, but you should generally use only resources that you've provided directly in your\napplication, in order to provide a cohesive application package that has no external dependencies.\nIn particular, you should not use drawable resources from the `android` package, because they\nmay change between platform versions, causing unforeseen conflicts with your design. Typically,\n[styles](/reference/android/R.style) are the only resources you should use directly from these\nresources.\n\nFor information about using resources, see the [Application Resources](/guide/topics/resources) developer guide.\n\nClasses\n-------\n\n|---------------------------------------------------------------------------|---|\n| [Manifest](/reference/android/Manifest) | |\n| [Manifest.permission](/reference/android/Manifest.permission) | |\n| [Manifest.permission_group](/reference/android/Manifest.permission_group) | |\n| [R](/reference/android/R) | |\n| [R.anim](/reference/android/R.anim) | |\n| [R.animator](/reference/android/R.animator) | |\n| [R.array](/reference/android/R.array) | |\n| [R.attr](/reference/android/R.attr) | |\n| [R.bool](/reference/android/R.bool) | |\n| [R.color](/reference/android/R.color) | |\n| [R.dimen](/reference/android/R.dimen) | |\n| [R.drawable](/reference/android/R.drawable) | |\n| [R.fraction](/reference/android/R.fraction) | |\n| [R.id](/reference/android/R.id) | |\n| [R.integer](/reference/android/R.integer) | |\n| [R.interpolator](/reference/android/R.interpolator) | |\n| [R.layout](/reference/android/R.layout) | |\n| [R.menu](/reference/android/R.menu) | |\n| [R.mipmap](/reference/android/R.mipmap) | |\n| [R.plurals](/reference/android/R.plurals) | |\n| [R.raw](/reference/android/R.raw) | |\n| [R.string](/reference/android/R.string) | |\n| [R.style](/reference/android/R.style) | |\n| [R.styleable](/reference/android/R.styleable) | |\n| [R.transition](/reference/android/R.transition) | |\n| [R.xml](/reference/android/R.xml) | |\n\n-\n\n Classes\n -------\n\n - [Manifest](/reference/android/Manifest)\n - [Manifest.permission](/reference/android/Manifest.permission)\n - [Manifest.permission_group](/reference/android/Manifest.permission_group)\n - [R](/reference/android/R)\n - [R.anim](/reference/android/R.anim)\n - [R.animator](/reference/android/R.animator)\n - [R.array](/reference/android/R.array)\n - [R.attr](/reference/android/R.attr)\n - [R.bool](/reference/android/R.bool)\n - [R.color](/reference/android/R.color)\n - [R.dimen](/reference/android/R.dimen)\n - [R.drawable](/reference/android/R.drawable)\n - [R.fraction](/reference/android/R.fraction)\n - [R.id](/reference/android/R.id)\n - [R.integer](/reference/android/R.integer)\n - [R.interpolator](/reference/android/R.interpolator)\n - [R.layout](/reference/android/R.layout)\n - [R.menu](/reference/android/R.menu)\n - [R.mipmap](/reference/android/R.mipmap)\n - [R.plurals](/reference/android/R.plurals)\n - [R.raw](/reference/android/R.raw)\n - [R.string](/reference/android/R.string)\n - [R.style](/reference/android/R.style)\n - [R.styleable](/reference/android/R.styleable)\n - [R.transition](/reference/android/R.transition)\n - [R.xml](/reference/android/R.xml)"]]