Search this blog

Working with layouts in android

Most Android application user interfaces are defined using specially formatted XML files called layouts. Layout resource files are included in the /res/layout directory. You compile layout files into...
READ MORE » Working with layouts in android

How to access image resources programatically android

Images resources are encapsulated in the class BitmapDrawable. To access a graphic resource file called /res/drawable/logo.png, you would use the getDrawable() method, as follows: BitmapDrawable logoBitmap...
READ MORE » How to access image resources programatically android

Image formats supported in anroid

Supported images format their description and required extension is given below Supported Image  Format                Description                  ...
READ MORE » Image formats supported in anroid

How to work with Dimensions in android

To specify the size of a user interface control such as a Button or TextView control,you need to specify different kinds of dimensions. You tag dimension resources with the <dimen> tag and store...
READ MORE » How to work with Dimensions in android

Working with color in android

You can apply color resources to screen controls. You tag color resources with the <color> tag and store them in the file /res/values/colors.xml. This XML resource file is not created by default...
READ MORE » Working with color in android

How to log android application information

Android provides a useful logging utility class called android.util.Log. Logging messages are categorized by severity (and verbosity), with errors being the most severe. Below see some commonly used...
READ MORE » How to log android application information

How to use dialogue methods of activity class

Methods and their purpose (1)Activity.showDialog()      Shows a dialog, creating it if necessary.  (2)Activity.onCreateDialog()Is a callback when a dialog is being...
READ MORE » How to use dialogue methods of activity class

How to provide input to android emulator

As a developer, you can adopt any one of the below way to provide input to the emulator: . Use your computer mouse to click, scroll, and drag items (for example, side volume controls) onscreen as well...
READ MORE » How to provide input to android emulator

How to use Intents to launch other applications

Initially, an application may only be launching activity classes defined within its own package. However, with the appropriate permissions, applications may also launch external activity classes in other...
READ MORE » How to use Intents to launch other applications

How to pass Information with Intents

We can use Intents to pass data between activities.We can use an intent in this way by including additional data, called extras, within the intent.To package extra pieces of data along with an intent,...
READ MORE » How to pass Information with Intents