Sometimes the same layout doesn’t scale well for both the orientations i.e landscape and portrait. It’s always suggested to have different layout file for different screen orientation. Managing two layout for different orientations is quite easy. You can manage in two different ways. By using resource/layout folder. By dynamically set the layout. resource/layout folder This […]

,

This is a basic tutorial with simple example on installing Android sdk and setting up development environment for Ubuntu machine. If you are using windows machine for development, then instructions may vary. Install java Install Eclipse Install Android SDK Install ADT plugin in Eclipse Create Android Virtual Device(AVD) Create Android Hello world project Install java […]

,

In the previous post, we learned to enable and disable the Broadcast receiver added in the Android manifest file. In this post, we will learn to register and unregister broadcast receiver programmatically. It’s always suggested to register and unregister broadcast receiver programmatically as it saves system resources. In this tutorial, we will make an application […]

,

Broadcast receiver is the one of the basic and important components of the Android application. There are two different ways of adding broadcast receiver in the Android application. It can be added either programmatically or in Android Manifest file. You should be careful while adding broadcast receiver because unnecessary broadcast receivers drain battery power. If […]

,

If you are thinking on customizing the animation of Activity transition then probably you would look for ActivityOptions class introduced in Android 4.1 (Jelly bean). This class has provided three methods which can help you to customize the Activity Animation. These are given in the table below. ActivityOptions Class Methods Function Name Description makeCustomAnimation This […]

, , , ,

You may have heard about the “Google Now project” where you give the voice command and Android fetches result for you. It recognizes your voice and converts it into the text or takes the appropriate action. Have you ever thought how is it done? If your answer is voice recognition API, then you are absolutly right. Recently while […]

, ,