presented by: muhammad tariq software engineer android training course

16
Presented By: Muhammad Tariq Software Engineer www.TNSbay.com Android Training course

Upload: rosaline-foster

Post on 30-Dec-2015

222 views

Category:

Documents


1 download

TRANSCRIPT

Presented By:

Muhammad TariqSoftware Engineer www.TNSbay.com

Android Training course

• Google's Android is an open-source platform that's currently available on a wide variety of smart phones.

• Android is a software stack for mobile devices that includes an operating system, middleware and key applications.

• The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.

• Based on the Linux kernel

What is Android?

OS layers

1. Install JDK 1.6 or above

2. Installing Eclipse IDE

3. Install Android SDK

4. Install the ADT plugin for eclipse

5. Add components needed for development

Installation Packages

What is Eclipse?

A multi-language software development environment

comprising

An integrated development environment (IDE)

Mostly written in Java

Eclipse is used to develop applications

In Java, C, C++, Perl, PHP, Python, R, etc.

For Android (using Java)

Download at http://bit.ly/EclipseClassic

Install Eclipse

For the Android SDK to be installed

The machine should have at least jdk 1.6

Version 1.7 is also ok

Then download the installer file from

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

The installer cannot locate the jdk

Just click the "Back" button and then "Next"

It should work

Install SDK and JDK

Use the Update Manager feature of Eclipse

To install the latest revision of AVD on your development computer

How to download it?

Start Eclipse, then select Help > Install New Software -> Add, in the top-right corner

In the Add Repository

Enter "ADT Plugin" for the Name

Copy for location https://dl-ssl.google.com/android/eclipse/

Install AVD

In the Available Software dialog

Select the checkbox next to Developer Tools and click Next

In the next window, you'll see a list of the tools to be downloaded

Click Next

Read and accept the license agreements

Then click Finish

Restart Eclipse

Install AVD

To create virtual device

Open Eclipse -> Window -> AVD Manager

Open the Android Virtual Device manager

Add new device

With the Android OS version needed

Why need AVD?

To test your app before deployment to a phone

To test on different versions of Android OS

To find and correct simple mistakes

Create New AVD

Create new AVD

Create New AVD

Give it some name Better add the OS version

Add SD card Size Select OS version You are done!

Create New ADV

Creating a Project

Need the items circled

ThenclickFinish

Name that appearson device

Directoryname

Class toautomatically

create

Java package

Androidversion

Project Components

src – your source code gen – auto-generated code (usually just R.java) Included libraries Resources

Drawables (like .png images) Layouts Values (like strings)

Manifest file

Sourcecode

Auto-generatedcode

UIlayout

Stringconstants

Configuration

Contact us

www.TNSbay.com

Cell: +92 342 2988522Telephone : +92 606 470099

[email protected]@gmail.com