300 likes | 401 Views
Mobile Development. Name: Saurabh. Software 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.
E N D
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...
Development Language Who Owns/ maintains it ? MOBILE PLATFORM Distribution Channel Development Tools
http://twitter.com One time Authentication (OAuth) Splash Screen Post Twit Activity I love Android… Post Twitter Feed Settings List Activity Remove Account
Button,Textbox, List,Image, … Linear Layout, Relative Layout,Table Layout, …
onCreate onStart onResume Foreground LifeCycle Complete LifeCycle Visible LifeCycle onPause onStop onDestroy
AsyncTask UI Thread onPreExecute() Activity onCreate() AsyncTask onStart() doInBackground() onResume() onPause() onStop() onPostExecute() onDestroy() UI Thread
Relative Layout Profile Name is aligned to the top and right of the image TechNext iPhone and Android event on 11 June, register for free and enjoy the ride… Twit is aligned to the bottom and right of the image
Service void onCreate(){ } //called every startService() void onStartCommand(intent ){ if(intent == xyz){ doxyz(); } } void onDestroy(){ } Intent Activity Action = xyz Data = 123 startService
void onCreate(){ } //called every startService() void onStartCommand(intent ){ if(intent == xyz){ doxyz(); } } void onDestroy(){ } bind Activity InstanceofISocialService <<ISocialService>> List<Twit> getSocialFeed(); Interact with api calls
Has my application broadcasted some event? Network is Wifior Network is 3G? Keeping yourself Am I on Roaming ? Is my battery dying? Am I low on disk space?
Activity registerReceiver(BroadcastReceiver) Intent Data: level-50 BoadcastReceiver 50% onReceive(Intent) Battery Indicator
AlarmManager 5000 milliseconds Pending Intent Repeating Task setRepeating Trigger after 5 seconds
“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.” -BjarneStroustrup
https://code.google.com/p/droidtwit/ Twitter code and all code shown here is available HERE