Post on 19-Jan-2016
Mobile Development
Name: SaurabhSoftware Developer
Location
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...
Platforms ?
M O B I L E
P L A T F O R M
Who Owns/ maintains it ?
Distribution Channel
Development Tools
Development Language
OS Architecture
Creating a Twitter app
http://twitter.com
One time Authentication
(OAuth)
Splash Screen
Twitter Feed
Settings
Remove Account
Post TwitI love
Android…
Post
Activity
List Activity
TWITT TWIT !!!
HELLO !
Linear Layout, Relative Layout, Table Layout, …
Button, Textbox, List, Image, …
ForegroundLifeCycleVisible LifeCycle
Complete LifeCycle
onCreate
onDestroy
onStart
onStop
onResume
onPause
HOW TO DISPLAY A LIST IN ANDROID?
Lifecycle and ANR
AsyncTask
onPreExecute()
doInBackground()
onPostExecute()
Activity
onCreate()onStart()
onResume()
onPause()onStop()
onDestroy()
UI Thread
UI Thread
AsyncTask
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…
WORKING IN BACKGROUND?
Activity
void onCreate(){}
//called every startService()void onStartCommand(intent ){ if(intent == xyz){ doxyz(); }}
void onDestroy(){}
startService
Action = xyzData = 123
Intent
Service
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
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?
Battery Indicator50%
IntentData:
level-50
BoadcastReceiver
Activity
registerReceiver(BroadcastReceiver)
onReceive(Intent)
SCHEDULING ACTIONS
AlarmManager setRepeatingRepeating
Task
5000 milliseconds
Trigger after 5 seconds
Pending Intent
“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
TWITTER CODE AND ALL CODE SHOWN HERE IS AVAILABLE HERE
https://code.google.com/p/droidtwit/