Successfully reported this slideshow.
Your SlideShare is downloading. ×

How to access the external database using the Android

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
Getting started with Vagrant
Getting started with Vagrant
Loading in …3
×

Check these out next

1 of 18 Ad

More Related Content

Advertisement

More from Mu Chun Wang (20)

Recently uploaded (20)

Advertisement

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

×