29
www.ethicstech.in Getting started with Android By CT. Muthumani [email protected] http://muthumanict.wordpress.com

Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Getting started with Android

ByCT. [email protected]://muthumanict.wordpress.com

Page 2: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Content

●Installing Android

●Hello World Program

Page 3: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Installing Android

Page 4: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Requirements

●Java JDK/JRE

●Android SDK

●Eclipse IDE

●ADT Plugin for Eclipse

Page 5: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Java

Before you download Android SDK make sure that you have installed Java jdk 5 or 6 on your machine.

If else open the terminal and typesudo apt-get install openjdk-6-jdk

Page 6: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Eclipse IDE

●Eclipse is the most popular open source IDE for Java

developers.

●Eclipse can also be used to develop in other languages.

●An ADT plug-in must be added to customize the eclipse IDE

for android development.

●Eclipse can be downloaded from

http://www.eclipse.org/downloads/

●Eclipse Classic version is recommended.

Page 7: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

ADT PLUG-IN FOR ECLIPSE

●Android Development Tools (ADT) is a plug-in for Eclipse

IDE which helps us to build Android application using

Eclipse.

●ADT extends the capabilities of Eclipse to let you quickly set

up new Android projects, debug your applications using the

Android SDK tools.

●ADT Plugin can be directly added from eclipse. ●Extract the downloaded Eclipse folder to your preferred location

and double click on the eclipse binary with in the extracted folder.

Page 8: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Installing ADT●STEP 1:

Goto help->Install New Software

Page 9: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Installing ADT●STEP 2: Add website to download ADT

https://dl-ssl.google.com/android/eclipse/

Page 10: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Installing ADT●STEP 3: Click okay and then next in the subsequent windows.

Page 11: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

ANDROID SDK

A software development kit that enables developers to create

applications for the Android platform.

SDK include:

● Device emulator

● Debugger

● Samples

● Tools

Page 12: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

ANDROID SDK

Download the Android SDK from Android’s developer

Website :

http://developer.android.com/sdk/index.html

Extract the downloaded tar file and save it in your preferred

location.

Page 13: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Installing SDK●Step 4: Open Eclipse and then goto windows->preferences

Page 14: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Installing SDK●Select Android, then Browse and locate the extracted SDK file and click OK.

Page 15: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Android SDK Manager

●New API's can be downloaded from Android SDK

Manager

●Click on the SDK manager icon(highlighted in Red

color in the image below) to get the SDK Manager

Window.

●Select some API's and hit install button.

Page 16: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

SDK Manager

Page 17: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Emulator

●New Emulator can be created using Android AVD

Manager.

●Click on the AVD manager icon(highlighted in Red

color in the image below) to get the AVD window.

●Click on the new button.

●Name the emulator with your convenient name,

select the desired target from the drop down and

mention the SD Card size(minimum 10Mib) and hit

Create AVD button.

Page 18: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Emulator

Page 19: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Emulator

Page 20: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Emulator●Click on start button to lunch the emulator.

Page 21: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Emulator

Page 22: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Hello World Program

Page 23: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Hello World●To create new android project open eclipse and then

Page 24: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Hello World●Fill in the project name and select the API of your choice.

Page 25: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Hello World

Page 26: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Hello World

Page 27: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Hello World

Page 28: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

Installation Successful

Page 29: Getting started with Android - WordPress.com€¦ · Android Development Tools (ADT) is a plug-in for Eclipse IDE which helps us to build Android application using Eclipse. ADT extends

www.ethicstech.in

THANK YOU