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 […]

,

Recently I was given a task to write a web-application. I didn’t have prior knowledge of web-application, so I started looking for simple Hello world!! tutorial. I found many tutorials, all of them were using some kind of IDE to write the application(and no wonder most of them were using Eclipse). But I was inclined […]

Android activity contains various user interface components e.g Button, Radio button, List, Text field etc. The user interface component can be ¬†arranged/attached with the activity in two different ways. Declaring UI element in layoutfile Basically, Layout file is xml formatted file present in res/layout. In this file, tags are used to define any UI component […]

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 […]

,