Showing posts with label Activities and Layouts. Show all posts
Showing posts with label Activities and Layouts. Show all posts

Wednesday, 30 January 2013

Android Development Tutorial (Based on Android 4.1) class-6

Using Resources


1. Reference to resources in code


The Resources class allows to access individual resources. An instance of Resources can get access via the getResources() method of the Context class.

The Resources class is also used by other Android classes, for example the following code shows