Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

How to access the external database using the Android

11,033 views

Published on

Published in: Technology, Business
  • Be the first to comment

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

×