How To Install Android SDK

To install Android SDK on a Windows machine, please follow these steps.

Step 1: Install Java Development Kit 

You need to install Java Development Kit, if it is not already installed on you computer. JDK 5 or JDK 6 (JRE alone will not work) is required for developing Android applications using the Android SDK. You can download the JDK from  http://java.sun.com/javase/downloads/index.jsp Follow the instructions provided at Java official page for the installation of JDK.

How to Get Location Updates in Android

This tutorial demonstrates how to get location updates and position the map to user's current location.  We will continue extending the code from previous tutorial How to Use Google Maps in Android Application

To find the location using GPS you need to include the ACCESS_FINE_LOCATION permissions to your application's manifest file.

How to Use Google Maps in Android Application

This tutorial demonstrates how to display Google Maps in an Android application.

Download Google APIs

To use Google Maps in your application, you need to download specific Google APIs. If you already downloaded the Google APIs then skip this step otherwise follow these instructions to download the updated Google APIs of your desired version.

Start SDK Manager from the Android SDK folder on your computer. Click on the Available Packages.

ListView with Custom Layout for Rows

This tutorial demonstrates how to define custom layout for rows of a list. In this example each row of the list will display text in a text view and
an icon image.

Android listview with custom layout


The steps for creating the applicaion are:

Create the Android Project. Select File>New>Android Project in the Eclipse menu.

Create a class that extends the ListActivity.

ListView in Transcript Mode

This tutorial demonstrates how to scroll the list to the bottom to make new items visible when they are added. This is similar to a typical chat application where user enters a new text in a text box and it is added to the bottom and list keeps scrolling to the bottom.

The steps for creating the application are:

In your Android Project create a class that extends the ListActivity.

How to Create Multiple Choice List

This Android tutorial demonstrates how to create multiple choice list and handle the item click.


android multiple choice list

The steps for creating the application are:

Create the Android Project. Select File>New>Android Project in the Eclipse menu.

Create a class that extends the ListActivity.

public class MainActivity extends ListActivity { }

Create an array of Strings

How to Create Single Choice List

This Android tutorial demonstrates how to create a single choice list and handle the item clicked.

Android single choice list

The steps for creating the applicaion are:

Create the Android Project. Select File>New>Android Project in the Eclipse menu.

Create a class that extends the ListActivity.

public class MainActivity extends ListActivity { }

Create an array of Strings

How to Start New Activity and Getting Results

This Android tutorial demonstrates how to start a new activity and getting results back when this activity ends.

This example starts with a main activity. The user clicks the button available on the main activity to start a new activity for results.

The new activity presents three buttons. Once user clicks any of these buttons, new activity finishes and data is send back to the calling activity.

How to Pick and Display Phone Contact using ACTION_PICK

This Android tutorial demonstrates the use of ACTION_PICK. The application displays a list of contacts available on the phone. The user picks one contact from the list. Once user picks the contact from the list, activity returns the uri of the contact picked. Then picked contact is displayed using the uri of the contact.

Create the Android Project. Select File>New>Android Project in the Eclipse menu.

Next create a class for main activity that extends the Activity class.

How to Start Another Activity

This Android tutorial demonstrates how to start another activity from the application. In this example when user clicks the button in one activity, it launches another activity.

Create the Android Project. Select File>New>Android Project in the Eclipse menu.

Next create a class for first activity that extends the Activity class.

public class FirstActivity extends Activity

 

Create another class for second activity. This must also extend the Activity class.

Pages

Subscribe to Mubasher Alam RSS