1 / 30

Mobile Development

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.

zagiri
Download Presentation

Mobile Development

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Mobile Development

  2. Name: Saurabh Software Developer

  3. Location

  4. 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...

  5. Platforms ?

  6. Development Language Who Owns/ maintains it ? MOBILE PLATFORM Distribution Channel Development Tools

  7. OS Architecture

  8. Creating a Twitter app

  9. http://twitter.com One time Authentication (OAuth) Splash Screen Post Twit Activity I love Android… Post Twitter Feed Settings List Activity Remove Account

  10. Twitt TWIT !!!

  11. Hello !

  12. Button,Textbox, List,Image, … Linear Layout, Relative Layout,Table Layout, …

  13. onCreate onStart onResume Foreground LifeCycle Complete LifeCycle Visible LifeCycle onPause onStop onDestroy

  14. How to display a list in android?

  15. Lifecycle and ANR

  16. AsyncTask UI Thread onPreExecute() Activity onCreate() AsyncTask onStart() doInBackground() onResume() onPause() onStop() onPostExecute() onDestroy() UI Thread

  17. 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

  18. Working in background?

  19. Service void onCreate(){ } //called every startService() void onStartCommand(intent ){ if(intent == xyz){ doxyz(); } } void onDestroy(){ } Intent Activity Action = xyz Data = 123 startService

  20. 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

  21. 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?

  22. Activity registerReceiver(BroadcastReceiver) Intent Data: level-50 BoadcastReceiver 50% onReceive(Intent) Battery Indicator

  23. Scheduling actions

  24. AlarmManager 5000 milliseconds Pending Intent Repeating Task setRepeating Trigger after 5 seconds

  25. “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

  26. https://code.google.com/p/droidtwit/ Twitter code and all code shown here is available HERE

More Related