getting started with android software development

19
HELLO ANDROID!!!

Upload: pantech-prolabs-india-pvt-ltd

Post on 02-Jul-2015

1.396 views

Category:

Education


1 download

DESCRIPTION

Getting started with Android Software Development

TRANSCRIPT

Page 1: Getting started with android software development

HELLO ANDROID!!!

Page 2: Getting started with android software development

Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.

Getting Started with Android

Software Development

Page 3: 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

Page 4: Getting started with android software development

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

Confidential © Copyright 2008

Pantech solutions Pvt Ltd

Page 6: Getting started with android software development

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 HelpInstall New Software option

• Click Add Button

• Add the Name(any) and Location as given here

Page 7: Getting started with android software development

Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.

SETTING UP EMULATOR

• Open SDK Manager

• Choose ToolsManage AVDs

• Android Virtual Device (AVD)

• Choose New and Enter the

options as you prefer in the dialog

box shown here

• Click Create AVD

Page 8: Getting started with android software development

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

Page 9: Getting started with android software development

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.

Page 10: Getting started with android software development

Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.

CONFIGURING ECLIPSE

• In Eclipse,Choose

WindowsPreferences

option

• Under the Android menu

enter the Android SDK

location as shown here

Page 11: Getting started with android software development

Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.

HELLO WORLD APPLICATION

Page 12: Getting started with android software development

Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.

HELLOWORLD APP

• Open Eclipse

• Choose

FileNewProject

option

• Select Android Project

option from Android

menu

• Click Next

Page 13: Getting started with android software development

Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.

HELLOWORLD APP

• Enter the ProjectName in

the typebox

• Click Next

Page 14: Getting started with android software development

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

Page 15: Getting started with android software development

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

Page 16: Getting started with android software development

Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.

HELLOWORLD APP

• Choose

RunConfigurations

option or Use icon

• DoubleClick on Android

Application.

• Enter a Config name and

the Project name as

shown here

Page 17: Getting started with android software development

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

Page 18: Getting started with android software development

Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.

EMULATOR OUTPUT

Page 19: Getting started with android software development

Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.