android development

50
Android Development www.compwerks.blogspot.com [email protected] Disclaimer: this presentation is solely for educational purposes only, all rights are reserved for all the respective owner of each content found in this presentation

Upload: john-mark-

Post on 27-Nov-2014

564 views

Category:

Technology


0 download

DESCRIPTION

Sneak peak in the vast universe of android development

TRANSCRIPT

Page 1: Android Development

Android

Developmentwww.compwerks.blogspot.com

[email protected]

Disclaimer: this presentation is solely for educational purposes only, all rights are reserved for all the respective owner of each content found in this presentation

Page 2: Android Development

Outline

Mobile Applications

Android Platforms

Google Play

System Architecture

Installation

Requirements

IDE

Plugin – Android SDK

Manager

Development

Hello World

ADB

MVC

AVD Manager

Activities

Fragments

Native vs Web vs Hybrid

Page 3: Android Development

Android Application

Page 4: Android Development
Page 5: Android Development

Top 5 Smart Phones for Android

Group Test Results (Android Definitive Guide)

1.Motorola

2.Samsung

3.Alcatel

4.Sony

5.LG

Page 6: Android Development

Android Platforms

Each platform release includes system images

that support a specific processor architecture,

such as ARM EABI, Intel x86 or MIPS. Platform

releases also include a system image that contains

Google APIs. The SDK Manager lists available

platform system images under each platform

version header, for example:

ARM EABI v7a System Image

Intel x86 Atom System Image

MIPS System Image

Google APIs

Page 7: Android Development

Android

Android 1.0

Cupcake

Donut

Éclair

Froyo

Gingerbread

Honeycomb

Ice cream

sandwich

Jellybean

Page 8: Android Development

Google Play Google Play (Google Market)

Android Package File

Page 9: Android Development

Publishing an App to google play

It is important that you have an existing

account in google play

You must have a credit card and is willing to

pay 25$ for registration

https://play.google.com/apps/publish/signup/

Page 10: Android Development

Publishing an App to google play All applications must be signed. The

system will not install an application on

an emulator or a device if it is not signed.

To test and debug your application, the

build tools sign your application with a

special debug key that is created by the

Android SDK build tools.

When you are ready to release your

application for end-users, you must sign it

with a suitable private key. You cannot

publish an application that is signed with

the debug key generated by the SDK tools.

You can use self-signed certificates to sign

your applications. No certificate authority

is needed.

The system tests a signer certificate's

expiration date only at install time. If an

application's signer certificate expires

after the application is installed, the

application will continue to function

normally.

You can use standard tools — Keytool and

Jarsigner — to generate keys and sign your

application .apk files.

After you sign your application for

release, we recommend that you use the

zipalign tool to optimize the final APK

package.

Page 11: Android Development

Publishing an App to google playRequirements

1. A completed Android application

project in Eclipse or an already

created “.apk” file

2. An Internet connection

3. A credit/debit card to pay for

Google Developer license

4. At least two screenshots of the

app, stored on your computer

5. Establishing Your Android File

Keystore

Password

Validity

An Alias

6. Uploading your application in

google console

Uploading your APK file

Adding description

Adding Screen Shot

Store Listing Icon

Filling additional Details

Page 12: Android Development

System Architecture

Page 13: Android Development

Installation

Page 14: Android Development

Requirements

Java Development Kit

Latest version is 8 but

for development use 7

instead

jdk1.7.x

ADT bundle (Android

Development Kit)

Configure System

Environment Variable

Additional Plugins

Virtual System

SDKs for different API

(Application

Programming Interface)

etc…

Page 15: Android Development

Download JDK – oracle.com

Page 16: Android Development

Installation of JDK

Page 17: Android Development

Configuration of JDK to Path

Environment Variables

Page 18: Android Development

Configuration of Java to Path

Environment Variables

Page 19: Android Development

Configuration of Java to Path

Environment Variables

Page 20: Android Development

http://developer.android.com/

Page 21: Android Development

Download ADT

Page 22: Android Development

Installation of ADT Bundle

Extract the zip file in a selected directory

Contents of the ADT bundle

Page 23: Android Development

Configuration of ADT tools to Path

Environment Variables

Find the directory of the platform-tools

And Find the directory of the tools

Page 24: Android Development

Configuration of ADT tools to Path

Environment Variables

Page 25: Android Development

IDE (Integrated Development

Environment)

Eclipse (Juno)

Go to the eclipse folder and look for

eclipse.exe

Create a shortcut for that to your

desktop

Plugin Installation (SDKs for each API,

Virtual System, etc)

Page 26: Android Development

Eclipse

Page 27: Android Development

Plugin Installation – Android

SDK Manager

The Android SDK separates tools, platforms, and other

components into packages you can download using the

SDK Manager.

For example, when the SDK Tools are updated

or a new version of the Android platform is released,

you can use the SDK Manager to quickly download them to

your environment.

Page 28: Android Development

Plugin Installation – Android SDK

Manager

Page 29: Android Development

Plugin Installation – Android SDK

Manager

Page 30: Android Development

Creating your first Project - HelloWorld

Page 31: Android Development

Model View Controller (MVC)

MODEL CONTROLLER VIEW

Manifest java xml

Page 32: Android Development
Page 33: Android Development
Page 34: Android Development

Android SDK Manager and

Android Virtual Device Manager

Page 35: Android Development
Page 36: Android Development

AVD

An Android Virtual Device (AVD) is

an emulator configuration that lets

you model an actual device by

defining hardware and software

options to be emulated by the

Android Emulator.

Page 37: Android Development

Android Debug Bridge Android Debug Bridge (adb) is a versatile command line

tool that lets you communicate with an emulator instance

or connected Android-powered device. It is a client-server

program that includes three components:

A client, which runs on your development machine. You can

invoke a client from a shell by issuing an adb command.

Other Android tools such as the ADT plugin and DDMS also

create adb clients.

A server, which runs as a background process on your

development machine. The server manages communication

between the client and the adb daemon running on an

emulator or device.

A daemon, which runs as a background process on each

emulator or device instance.

Page 38: Android Development

An activity is a single,

focused thing that

the user can do, it

represents a single

screen in your app

Page 39: Android Development

IntentA.k.a. intention to do something, enable an application to transfer from one activity to another

Page 40: Android Development

Fragments

A Fragment represents a

behaviour or a portion of user

interface in an Activity

Page 41: Android Development
Page 42: Android Development
Page 43: Android Development

Native vs Web vs Hybrid

Native

Web

Performance

Platform Independence

Page 44: Android Development

Native vs Web vs Hybrid

Hybrid

Page 45: Android Development

Web

Page 46: Android Development
Page 47: Android Development

Hybrid

Page 48: Android Development

Phonegap – html5, javascript, css

Page 49: Android Development

Phonegap – html5, javascript, css

Page 50: Android Development

Thank You!

Disclaimer: this presentation is solely for educational purposes only, all rights are presereved for all the respective owner of each content found in this presentation