Android Workshop Presentation

39
http://www.iwillstudy.com/group/android

Transcript of Android Workshop Presentation

Page 1: Android Workshop Presentation

http://www.iwillstudy.com/group/android

Page 2: Android Workshop Presentation

Mobile Operating Systems

Android

Symbian

iOS

Blackberry OS

Samsung Bada

Windows Mobile

Windows Phone 7

Page 3: Android Workshop Presentation

Market Share – Mobile OS

Page 4: Android Workshop Presentation

Statistics: OEM

Lost half its market in one quarter

• Sold 24 – 27 million smartphones in Q2

• Owns 24% Market Share

Sales will be down in Q2 by 18.7 million

• Sold 18.7 million iPhones in Q1

• Roughly holds 18% Market Share

Will grow by 51% unit sales in 3 months

• Sold 12.6 million smartphones in Q1

• 4th largest smartphone maker

Page 5: Android Workshop Presentation

Statistics : OEM

Market Share down by 13%

• Q2 Sales 13.3 Million units

• Q1 Sales 14.5 Million units

13% Growth from Quarter 1

• Holds 11% Market Share

• 11.0 million smartphones sold

Sony Ericsson sold 4.9 Million Smartphones Q1

• LG sold 4.7 Million

• Motorola sold 4.1 Million

Page 6: Android Workshop Presentation

Open Handset Alliance (OHA)

Page 7: Android Workshop Presentation

Open Handset Alliance (OHA)

Page 8: Android Workshop Presentation

Open Handset Alliance (OHA)

Page 9: Android Workshop Presentation

Google Services

Gmail

Maps

Docs

Latitude

Calendar

Google Talk

Page 10: Android Workshop Presentation

Market Place

Market? Revenue?Free

Apps?Review

Systems?

Page 11: Android Workshop Presentation

Why Android is growing?

• Open Source

• Free SDK

• Easy To Use APIsDevelopers

• Free

• Open Standards (Design/Hardware)OEMs

• Suits Business Model

• Huge Market Space

Service Providers

Page 12: Android Workshop Presentation

Winners – End Users/Developers

Developers

OEMs

Service Providers

Page 13: Android Workshop Presentation

Introduction to Android Platform

Android is an open software platform for mobile

development.

Page 14: Android Workshop Presentation

Android Architecture

Page 15: Android Workshop Presentation

Linux Kernel

The architecture is based on the Linux 2.6 kernel.

Android use Linux kernel as its hardware abstraction

layer.

It also provides memory management, processmanagement, a security model, andnetworking, a lot of core operating system

infrastructures that are robust and have been proven

over time.

Page 16: Android Workshop Presentation

Native Libraries

The next level up is the native libraries.

Everything that you see here in green is written

in C and C++.

It's at this level where a lot of the core power

of the Android platform comes from.

Page 17: Android Workshop Presentation

Android Run Time

Page 18: Android Workshop Presentation

Android Run Time

Page 19: Android Workshop Presentation

Application Framework

Page 20: Android Workshop Presentation

Application Framework

Page 21: Android Workshop Presentation

Application Framework

Page 22: Android Workshop Presentation

Application Framework

Page 23: Android Workshop Presentation

Application Framework

Page 24: Android Workshop Presentation

Applications

And the final layer on top is Applications.

This is where all the applications get written.

It includes the home application, the contacts application, the

browser, and your apps.

And everything at this layer is, again, using the same app

framework provided by the layers below.

Page 25: Android Workshop Presentation

Now, if you're going to write an app, the first step is to

decompose it into the components that are supported by

the Android platform.

• UI component typically corresponding to one screen.Activity

• Responds to notification or status changes. Can wake up your process.Intent Receiver

• Faceless task that runs in the background.Service

• Enable applications to share dataContent Provider

Application Building Blocks

Page 26: Android Workshop Presentation

Application Building Blocks

An activity is a single, focused thing that the user

can do.

Activity Lifecycle

Actual Representation

Page 27: Android Workshop Presentation
Page 28: Android Workshop Presentation

Actual Representation

Page 29: Android Workshop Presentation

Application Building Blocks

They are nothing Else but messages.

We need to intent if we need to start any

Activity , Service or Broadcast Messages.

Page 30: Android Workshop Presentation

An Activity Diagram

Activity One Activity TwoIntent

Page 31: Android Workshop Presentation

Application Building Blocks

A service run in the background.

User for long running task.

A good example is a music player.

A Service is not a separate process and A

Service is not a thread.

Page 32: Android Workshop Presentation

Application Building Blocks

Content providers store and retrieve data and

make it accessible to all applications.

This is only way to share data across applications.

Examples of Content Provider – Contacts, SMS,

Calendar, User Define etc.. And NOT email

Page 33: Android Workshop Presentation

IDE + Hello World + Program

Structure

Lets jump into programming now !!

Learning Android is as simple as biting an Apple!

Page 34: Android Workshop Presentation

Installations

&

Configuration

Page 35: Android Workshop Presentation

Installation Resources

At Least 2GB of Ram minimum.

Install Java Run Time.

Copy Android SDK directories into your system

Install Android SDK manager

Get Eclipse

Add ADT plug-in to Eclipse

Get Android SDK directory on eclipse

Check Page 18

Page 36: Android Workshop Presentation

Let’s make our First AVD

Android Virtual Device

Page 37: Android Workshop Presentation

Send SMS Program

Let’s learn few

Terms first

Page 38: Android Workshop Presentation

Terms To know

• Pending INTENT

• Broadcast Receivers

Page 39: Android Workshop Presentation

Thanks for coming

You can get your doubts solved at:

Android Study Group: http://www.iwillstudy.com/group/android

Write to us:

[email protected]

Like us on Facebook:

http://www.facebook.com/iwillstudy

Visit our office

F-05, AdityaRaj Arcade,

Opp. Hetvee towers,

100 Ft. Anandnagar Road,

Ahmedabad 380 051