You are on page 1of 19

HELLO ANDROID!!!

Getting Started with Android Software Development

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

SYSTEM/SOFTWARE REQUIREMENTS

OS-Windows/Linux/MacOS Android SDK Eclipse IDE JDK 1.5 (minimum) At least 2 GB disk space recommended

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

Installing JDK and Android SDK

Download JDK from http://www.oracle.com/technetwork/java/javase/do wnloads/index.html Download Android SDK from http://developer.android.com/sdk/index.html Install JDK first and then install the Android SDK

Technology beyond the Dreams Confidential

Copyright 2008

Copyright 2006 Pantech Solutions Pvt Ltd.

ECLIPSE IDE AND ADT PLUGIN

Download ECLIPSE IDE from


http://www.eclipse.org/ downloads/packages/e clipse-ide-javadevelopers/indigosr1

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

ECLIPSE IDE AND ADT PLUGIN



Open Eclipse IDE Install ADT plugin(Android Development Tool) for Eclipse Choose Help Install New Software option Click Add Button Add the Name(any) and Location as given here

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

SETTING UP EMULATOR

Open SDK Manager Choose Tools Manage AVDs Android Virtual Device (AVD) Choose New and Enter the options as you prefer in the dialog box shown here Click Create AVD

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

CONFIGURING ECLIPSE
Open System Propertries or use the shortcut key Win+Break Open Advanced tab and click on Environment Variables button

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

CONFIGURING ECLIPSE
Create a new system variable with name Path and the value as the installation directory of jdk as shown here.

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

CONFIGURING ECLIPSE
In Eclipse,Choose Windows Preferences option Under the Android menu enter the Android SDK location as shown here

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

HELLO WORLD APPLICATION

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

HELLOWORLD APP
Open Eclipse Choose File New Project option Select Android Project option from Android menu Click Next

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

HELLOWORLD APP
Enter the ProjectName in the typebox Click Next

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

HELLOWORLD APP
Choose the desired build target Here we chose the target as Android 2.2 Click Next

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

HELLOWORLD APP
Enter Application Name Enter Package Name Enter Minimum SDK Version Click Finish A new Project is created now Note:The HelloWorld code is automatically generated by Eclipse
Technology beyond the Dreams
Copyright 2006 Pantech Solutions Pvt Ltd.

HELLOWORLD APP
Choose Run Configurations option or Use icon DoubleClick on Android Application. Enter a Config name and the Project name as shown here

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

HELLOWORLD APP
In Run Configurations Under Target tab Choose the AVD and the target selection mode as Automatic (default) Click Apply Click Run

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

EMULATOR OUTPUT

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

Technology beyond the Dreams

Copyright 2006 Pantech Solutions Pvt Ltd.

You might also like