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...
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...
Image formats supported in anroid
Supported images format their description and required extension is given below
Supported Image Format Description ...
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...
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...
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...
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...
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...
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...
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,...
Subscribe to:
Posts (Atom)