mobile development. name: saurabh software developer

30
Mobile Development

Upload: bryan-wood

Post on 19-Jan-2016

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mobile Development. Name: Saurabh Software Developer

Mobile Development

Page 2: Mobile Development. Name: Saurabh Software Developer

Name: SaurabhSoftware Developer

Page 3: Mobile Development. Name: Saurabh Software Developer

Location

Page 4: Mobile Development. Name: Saurabh Software Developer
Page 5: Mobile Development. Name: Saurabh Software Developer
Page 6: Mobile Development. Name: Saurabh Software Developer

It’s yours, its personal, it’s never shared, even with..

It’s always on, until the battery runs out...

It’s always with you, until you loose it...

It is at the point of consumption, unless you forget it...

Providing personalisation, location, attention...

Page 7: Mobile Development. Name: Saurabh Software Developer

Platforms ?

Page 8: Mobile Development. Name: Saurabh Software Developer

M O B I L E

P L A T F O R M

Who Owns/ maintains it ?

Distribution Channel

Development Tools

Development Language

Page 9: Mobile Development. Name: Saurabh Software Developer
Page 10: Mobile Development. Name: Saurabh Software Developer
Page 11: Mobile Development. Name: Saurabh Software Developer

OS Architecture

Page 12: Mobile Development. Name: Saurabh Software Developer

Creating a Twitter app

Page 13: Mobile Development. Name: Saurabh Software Developer

http://twitter.com

One time Authentication

(OAuth)

Splash Screen

Twitter Feed

Settings

Remove Account

Post TwitI love

Android…

Post

Activity

List Activity

Page 14: Mobile Development. Name: Saurabh Software Developer

TWITT TWIT !!!

Page 15: Mobile Development. Name: Saurabh Software Developer

HELLO !

Page 16: Mobile Development. Name: Saurabh Software Developer

Linear Layout, Relative Layout, Table Layout, …

Button, Textbox, List, Image, …

Page 17: Mobile Development. Name: Saurabh Software Developer

ForegroundLifeCycleVisible LifeCycle

Complete LifeCycle

onCreate

onDestroy

onStart

onStop

onResume

onPause

Page 18: Mobile Development. Name: Saurabh Software Developer

HOW TO DISPLAY A LIST IN ANDROID?

Page 19: Mobile Development. Name: Saurabh Software Developer

Lifecycle and ANR

Page 20: Mobile Development. Name: Saurabh Software Developer

AsyncTask

onPreExecute()

doInBackground()

onPostExecute()

Activity

onCreate()onStart()

onResume()

onPause()onStop()

onDestroy()

UI Thread

UI Thread

AsyncTask

Page 21: Mobile Development. Name: Saurabh Software Developer

Profile Name is aligned to the top and right of the image

Twit is aligned to the bottom and right of the image

Relative Layout

TechNext

iPhone and Android event on 11 June, register for free and enjoy the ride…

Page 22: Mobile Development. Name: Saurabh Software Developer

WORKING IN BACKGROUND?

Page 23: Mobile Development. Name: Saurabh Software Developer

Activity

void onCreate(){}

//called every startService()void onStartCommand(intent ){ if(intent == xyz){ doxyz(); }}

void onDestroy(){}

startService

Action = xyzData = 123

Intent

Service

Page 24: Mobile Development. Name: Saurabh Software Developer

Activity

void onCreate(){}

//called every startService()void onStartCommand(intent ){ if(intent == xyz){ doxyz(); }}

void onDestroy(){}

bind

<<ISocialService>>

List<Twit> getSocialFeed();

Instanceof ISocialService

Interact with api calls

Page 25: Mobile Development. Name: Saurabh Software Developer

KEEPING YOURSELF

Am I low on disk space?

Network is Wifi or Network is 3G?

Has my application broadcasted some event?

Am I on Roaming ?

Is my battery dying?

Page 26: Mobile Development. Name: Saurabh Software Developer

Battery Indicator50%

IntentData:

level-50

BoadcastReceiver

Activity

registerReceiver(BroadcastReceiver)

onReceive(Intent)

Page 27: Mobile Development. Name: Saurabh Software Developer

SCHEDULING ACTIONS

Page 28: Mobile Development. Name: Saurabh Software Developer

AlarmManager setRepeatingRepeating

Task

5000 milliseconds

Trigger after 5 seconds

Pending Intent

Page 29: Mobile Development. Name: Saurabh Software Developer

“I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone.” -Bjarne Stroustrup

Page 30: Mobile Development. Name: Saurabh Software Developer

TWITTER CODE AND ALL CODE SHOWN HERE IS AVAILABLE HERE

https://code.google.com/p/droidtwit/