How to access the external database using the Android

10,987 views

Published on

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

No Downloads
Views
Total views
10,987
On SlideShare
0
From Embeds
0
Number of Embeds
1,982
Actions
Shares
0
Downloads
128
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

How to access the external database using the Android

  1. 1. How to access the external database using the Android kewang
  2. 2. Access Model 2
  3. 3. RESTful Model GET POST PUT DELETE show update destroy /events/1 /events/1 /events/1 index create /events /events edit /events/1/edit new /events/new 3
  4. 4. ActionController using RESTful 4
  5. 5. CASE 1: using org.apache.http.impl.client.DefaultHttpClient with Android 5
  6. 6. send HTTP request 6
  7. 7. HTTP 417 f ailed! ? 7
  8. 8. lighttpd.access.log 8
  9. 9. Header Expect: 100-Continue!? 9
  10. 10. CASE 2: using Google Chrome with Ubuntu 10.04 10
  11. 11. Header NO Expect: 100-Continue 11
  12. 12. lighttpd.access.log 12
  13. 13. development.log (Rails) 13
  14. 14. CASE 3: REMOVE IT!!! 14
  15. 15. Header NO Expect: 100-Continue 15
  16. 16. lighttpd.access.log 16
  17. 17. development.log (Rails) 17
  18. 18. Special thanks to Michael Mayo http://overhrd.com/?p=189 18

×