using android 5.0 lollipop

30
Using Android 5.0 lollipop For Queries: Post on Twitter @edurekaIN: #askEdureka Post on Facebook /edurekaIN For more details please contact us: US : 1800 275 9730 (toll free) INDIA : +91 88808 62004 Email Us : [email protected] View Android Development course details at http://www.edureka.co/android-development-certification-course

Upload: edureka

Post on 02-Aug-2015

85 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Using Android 5.0 Lollipop

Using Android 5.0 lollipop

For Queries:Post on Twitter @edurekaIN: #askEdurekaPost on Facebook /edurekaIN

For more details please contact us: US : 1800 275 9730 (toll free)INDIA : +91 88808 62004Email Us : [email protected]

View Android Development course details at http://www.edureka.co/android-development-certification-course

Page 2: Using Android 5.0 Lollipop

Slide 2 www.edureka.co/android-development-certification-course

At the end of this module, you will be able to:

Objectives

Understand » Various Building Blocks of Android Application» Activity Lifecycle» App Monetization » Android Evolution

Create Android Application using Android 5.0 Lollipop

Page 3: Using Android 5.0 Lollipop

Slide 3 www.edureka.co/android-development-certification-course

Application built using Android Lollipop sdk

Aryan

Vivek

Gautam

Gaurav

EM??

Page 4: Using Android 5.0 Lollipop

Slide 4 www.edureka.co/android-development-certification-course

APIs used in HOP

Pallet API

Android 5.0 Animations

Android 5.0 Web Services

Android 5.0 Design guidelines and color schemes

Android 5.0 Transitions

Page 5: Using Android 5.0 Lollipop

Slide 5 www.edureka.co/android-development-certification-course

Andy Rubin,Co-Founder Android Inc.,

SVP, Mobile and Digital Content,Google Inc.

“Every day more than 1 million new Android devices are activated worldwide.”

Did You Know?

Page 6: Using Android 5.0 Lollipop

Slide 6 www.edureka.co/android-development-certification-course

Android Ecosystem

App Dev Houses

Freelancers

OEMs

Consumers

Page 7: Using Android 5.0 Lollipop

Slide 7 www.edureka.co/android-development-certification-course

App Monetization

Page 8: Using Android 5.0 Lollipop

Slide 8 www.edureka.co/android-development-certification-course

What are various Building Blocks of an Android App?

What is the Lifecycle of an Android App?

How does a Mobile App handle Hardware Events?

How does an App run Background Jobs like Network Download, Music Player etc.?

How do Multiple Apps Access Shared Resources such as Address Book, Photo Gallery etc.?

Did You Know?

Page 9: Using Android 5.0 Lollipop

Slide 9 www.edureka.co/android-development-certification-course

Introduction to Android

What is Android?

» Open software platform

» A complete stack – OS, Middleware, Applications

» Fast application development using Java

Note: This course will deal with Native Android Application Development

Page 10: Using Android 5.0 Lollipop

Slide 10 www.edureka.co/android-development-certification-course

Android Evolution A-L…No B

1.5Cupcake

1.6Donut

2.0/2.1Eclair

2.2Froyo

2.3Gingerbread

3.0/3.1Honeycomb

4.0Ice Cream Sandwich

4.1/4.2Jelly Bean

4.4KitKat

5.0Lollipop

What Next!!

??

Page 11: Using Android 5.0 Lollipop

Slide 11 www.edureka.co/android-development-certification-course

The relative number of devices running a given version of the Android platform

Ref: https://developer.android.com/about/dashboards/index.html

Version Codename API Distribution

2.2 Froyo 8 0.6%

2.3.3 -2.3.7

Gingerbread 10 9.8%

4.0.3 -4.0.4

Ice Cream Sandwich

15 8.5%

4.1.x

Jelly Bean

16 22.8%

4.2.x 17 20.8%

4.3 18 7.3%

4.4 KitKat 19 30.2%

KitKat

Froyo

Gingerbread

Ice Cream Sandwich

Jelly Bean

Android Evolution A-L…No B (Contd.)

Page 12: Using Android 5.0 Lollipop

Slide 12 www.edureka.co/android-development-certification-course

Main Building Blocks - Application

The components behind any Android App

Service

Content Provider

Broadcast Receiver

Activity

Intent

Page 13: Using Android 5.0 Lollipop

Slide 13 www.edureka.co/android-development-certification-course

Activity - Typically a Screen

Login Activity News Feed Activity

Page 14: Using Android 5.0 Lollipop

Slide 14 www.edureka.co/android-development-certification-course

Activity Lifecycle

Starting state» When an activity doesn’t exist in the memory, it is in

a starting state

Running state» When an activity is currently on the screen and

interacting with the user

Paused state» When an activity is not in focus (i.e., not interacting

with the user) but still visible on the screen

Stopped state» When an activity is not visible, but still in the

memory

Destroyed state» A destroyed activity is no longer in the memory

(1) OnCreate()(2) onStart()

(3) On RestoreInstanceState()

(4) onResume()

(3) onResume()(2) onstart()

(1) onRestart()

(1) onSaveInstanceState()

(2) onPause()

(1) onSaveInstanceState()

(2) onStop()

onDestroy()or

<process Killed>

<process killed>

onResume()

Starting

Running

Stopped Paused

Destroyed

Page 15: Using Android 5.0 Lollipop

Slide 15 www.edureka.co/android-development-certification-course

Intents - Action

Think of Intents as a verb for an object

» A description of what needs to be done

» Example: VIEW, CALL, PLAY etc.

Page 16: Using Android 5.0 Lollipop

Slide 16 www.edureka.co/android-development-certification-course

Intent - Switching Between Activities

Photo Gallery Activity Photo View Activity

View Photo Intent

Page 17: Using Android 5.0 Lollipop

Slide 17 www.edureka.co/android-development-certification-course

Services - Background Jobs

Service Lifecycle Faceless components running in background

They are of following types:

» Unbound Service» It is a kind of service which runs in the background

indefinitely, even if the activity which started this service ends

» Bound Service» It is a kind of service which runs till the lifespan of the

activity which started this service

Example: music player, network download etc.

Running

(1) onCreate()

(2) onStart()

onDestroy()

or

<process killed>

Destroyed

Starting

Page 18: Using Android 5.0 Lollipop

Slide 18 www.edureka.co/android-development-certification-course

Services - Examples in Facebook App

Various Feeds by friends

Notifications about Friend Requests

Page 19: Using Android 5.0 Lollipop

Slide 19 www.edureka.co/android-development-certification-course

Content Providers

Enables sharing of data across applications» Example: address book, photo gallery

Provide uniform APIs for: » Querying» Delete» Update» Insert

App

ContentProvider

insert()

update()

delete()

query()

Database

Page 20: Using Android 5.0 Lollipop

Slide 20 www.edureka.co/android-development-certification-course

Broadcast Receiver - Dormant Observer

Broadcast Receiver

Android System

Registers for Intents to Observe

Get Notification when Intents Occurs

Page 21: Using Android 5.0 Lollipop

Slide 21 www.edureka.co/android-development-certification-course

Broadcast Receiver - Dormant Observer

Similarly a notification of a change in the Time Zone is triggered with the help of broadcast receiver

An alarm that wakes or rings the device when the stipulated time is reached, is triggered with the help of broadcast receiver

Broadcast Receiver

Registers for Intents to Observe

Get Notification when Intents Occurs

Page 22: Using Android 5.0 Lollipop

Slide 22 www.edureka.co/android-development-certification-course

Recapture - Building Blocks

Activity – Screen» Wall, Login etc.

Intent – Action» Open Picture, Play YouTube Video

Service - Background Jobs» Music Player, Network Download, GPS

Content Provider – Fetch Data for Applications» Contacts, Photo Gallery

Broadcast Receivers – Dormant Observers» Message, Friend Request notification when App in Background

Page 23: Using Android 5.0 Lollipop

Slide 23 www.edureka.co/android-development-certification-course

Now, Do You Know?

What are the various Building Blocks of an Android App?

What is the Lifecycle of an Android App?

How does a Mobile App handle the Hardware Events?

How does an App run Background Jobs like Network Download, Music Player etc.?

How do Multiple Apps Access Shared Resources such as Address Book, Photo Gallery etc.?

Page 24: Using Android 5.0 Lollipop

Slide 24 www.edureka.co/android-development-certification-course

Job Trends

Source - http://www.indeed.com/jobtrends?q=android%2Cios&l=&relative=1

Page 25: Using Android 5.0 Lollipop

Slide 25 www.edureka.co/android-development-certification-course

One of The Most Popular App

This is one of the most popular apps developed by an edureka student Mehvish Mushtaq

Page 26: Using Android 5.0 Lollipop

Slide 26 www.edureka.co/android-development-certification-course

Few Apps Developed by Edureka Learner

Prashant Jain

PNR Enquiry App

Hisham Muneer

Black Jack App

Anubhav Gupta

Reebok Shopping App

Page 27: Using Android 5.0 Lollipop

Slide 27Slide 27Slide 27 www.edureka.co/android-development-certification-course

Course Topics

Module 1

» Introduction to Android Development

Module 2

» Android Layouts and Widgets

Module 3

» Activity and Fragments, Notifications and Media

Module 4

» Customizing Widgets and Implementing Event Receivers

Module 5

» Storage and Animations

Module 6

» Web Services

Module 7

» Location and Google Maps

Module 8

» Database Framework & Third Party Libraries

Module 9

» Sensors and Social Media Integration

Module 10

» End-to-End App Development & Publishing

Page 28: Using Android 5.0 Lollipop

Slide 28 www.edureka.co/android-development-certification-course

Questions

Page 29: Using Android 5.0 Lollipop

Slide 29 www.edureka.co/android-development-certification-course

LIVE Online Class

Class Recording in LMS

24/7 Post Class Support

Module Wise Quiz

Project Work

Verifiable Certificate

How it Works

Page 30: Using Android 5.0 Lollipop