Consuming Web Services in Android

702 views

Published on

My presentation from Michigan Google Developers DevFest 2013.

As mobile apps continue to get more sophisticated, they need data, whether it’s the from the business backend or the current scoreboard for a game server hosted in the cloud. Find out how to connect to and consume web services with your Android application. Get connected to the cloud, working with REST web services and learning how to parse the results.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
702
On SlideShare
0
From Embeds
0
Number of Embeds
14
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Consuming Web Services in Android

  1. 1. Consuming Web Services
  2. 2. Mobile • Develop • Design • Lead • Train • TroubleshootDavid Truxall, Ph.D.@davetruxhttp://blog.davidtruxall.com
  3. 3. https://github.com/davetrux/DevFest2013Get the code
  4. 4. The Mobile Problem(for developers)
  5. 5. Screen Real Estate
  6. 6. CPU Power
  7. 7. Memory Constrained
  8. 8. Network Bandwidth
  9. 9. Familiar?
  10. 10. XMLJSONWeb ServicesSoapREST
  11. 11. REpresentational State TransferGETPOSTPUTDELETE
  12. 12. JavaScript Object Notation[{"lastName": "Valdez","firstName": "Christian","gender": "m"},{"lastName": "Alston","firstName": "Christie","gender": "f"}]
  13. 13. Where?GoogleAmazonTwitterFacebookeBayBaas Providersprogrammableweb.comWindows AzureGovernmentLinkedInFlickrYahooYelpYour companyBuild Some!
  14. 14. Web Services and Android
  15. 15. Lots of Options
  16. 16. Not in an Activity
  17. 17. AsyncTask vs. Service
  18. 18. AsyncTask
  19. 19. Activity ConsiderationsActive when request completesPaused then resumed and request completesPaused when request completes then resumed
  20. 20. Demo
  21. 21. ServicesNot a daemon or Windows ServiceLike a cron job or scheduled task
  22. 22. IntentService vs. Service
  23. 23. ActivityIntentServiceIntentServiceWebServicesIntent w/URL & paramsREST + JSONIntent w/data
  24. 24. Code
  25. 25. Whats MissingPersistenceHTTP HeadersError HandlingSecurityConfiguration
  26. 26. PerformanceData sizePaginggzip
  27. 27. Google IO 2010 PresentationServices DocumentationCode on GithubThis PresentationMy BlogResources@davetrux

×