Android contains a number of standard resources, such as styles, themes, and layouts. To access these resources, qualify the resource link using the android package name. For instance,
ImageView img = (ImageView)findViewById(R.id.imgView1); img.setImageResource(android.R.drawable.ic_media_play);
Note. But you can only access resources available in android.R packages.
Look here android.R
source share