For launching an activity, we need to create an explicit intent that defines the activity that we wish to start.…
How to add zoom controls to Android MapView
The following code snippet shows how to add zoom controls to Android MapView. We can achieve this by calling setBuiltInZoomControls(boolean) method. MapView…
How to access accelerometer in Android
The following code snippet will help you with the basic understanding of how to set up the Android accelerometer and…
How to create a background service in Android
To create a background service, first you need to add the service into your manifest file. Then, create a class…
How to Get Device Information in Android
The following code snippet will get the device detailed information in Android. public class DashboardActivity extends Activity { @Override protected…
Android Interview Questions And Answers
This post answers some of the common android interview questions and answers. 1. How to send SMS in Android? You…
Android Styles and Themes Tutorial
1. Android Design Patterns 2. Using Custom Styles 2.1. Defining Style Class 2.2. Apply a Style to View 2.3. Inheriting Built-in Platform Styles…
Download Image using AsyncTask in Android
This tutorial explains how to download Image using AsyncTask in Android. The example below download image while showing progress bar…
Android ListView Example
1. Introduction 2. Android Adapter 3. ListView Using ArrayAdapter 4. ListView Using Custom Adapter 4.1. Define List Row Layout 4.2. Custom…