Your SlideShare is downloading. ×
0
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Droidcon Eastern Europe 2013 - Efficient REST client Android applications
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Droidcon Eastern Europe 2013 - Efficient REST client Android applications

831

Published on

Best practices when using REST clients in Java for Android presented by Eugeniu Arbuleac and Laurentiu Onac - Appsrise.com . …

Best practices when using REST clients in Java for Android presented by Eugeniu Arbuleac and Laurentiu Onac - Appsrise.com .

The slides were presented at Droidcon Bucharest 2013.

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

No Downloads
Views
Total Views
831
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
21
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Efficient REST Client applications by Eugen Arbuleac & Laurentiu Onac
  • 2. What is REST ?
  • 3. What is REST? 1 client server architectural style 2 exchanges resources 3 broadly adopted 4 commonly used over http
  • 4. Mobile friendly web pages VS REST Mobile apps
  • 5. Apps advantages OVER Web sites 1 integration with the platform 2 Run in background 3 Consistent UI 4 users prefer native apps
  • 6. Wrong APPROACH
  • 7. Wrong Approach Activity - UI thread Worker thread REST Request
  • 8. Wrong Approach 1 2 Limited No memory persistence
  • 9. Good APPROACH
  • 10. Good Approach Activity - UI thread Content provider NOTIFY service helper Content observer callback Crud initiate rest request Service - UI thread Worker thread REST Request Response RESOURCE STATE UPDATE Handler parser
  • 11. Good Approach 1 2 Use Use worker threads services 3 Use content providers
  • 12. Even better Approach 4 Use push notifications server notify new data
  • 13. Even better Approach 5 Use Sync adapter Content provider 1. request sync data 6. CRUD 2. PASS sync data Sync adapter Handler 5. parse 4. Response 3. INIT Request server
  • 14. Thank you Questions? Eugen Arbuleac arbuleac.ev@gmail.com Laurentiu Onac , onac.laurentiu@gmail.com

×