+ All Categories
Home > Technology > How to access the external database using the Android

How to access the external database using the Android

Date post: 21-Jan-2015
Category:
Upload: mu-chun-wang
View: 10,537 times
Download: 5 times
Share this document with a friend
Description:
 
Popular Tags:
18
How to access the external database using the Android kewang
Transcript
Page 1: How to access the external database using the Android

How to access the external database using the Android

kewang

Page 2: How to access the external database using the Android

2

Access Model

Page 3: How to access the external database using the Android

3

GET POST PUT DELETEshow

/events/1update

/events/1destroy

/events/1index

/eventscreate

/events

edit/events/1/edit

new/events/new

RESTful Model

Page 4: How to access the external database using the Android

4

ActionControllerusing RESTful

Page 5: How to access the external database using the Android

5

CASE 1:

using org.apache.http.impl.client.DefaultHttpClient with Android

Page 6: How to access the external database using the Android

6

send HTTP request

Page 7: How to access the external database using the Android

7

HTTP 417 failed!?

Page 8: How to access the external database using the Android

8

lighttpd.access.log

Page 9: How to access the external database using the Android

9

HeaderExpect: 100-Continue!?

Page 10: How to access the external database using the Android

10

CASE 2:

using Google Chrome with Ubuntu 10.04

Page 11: How to access the external database using the Android

11

HeaderNO Expect: 100-Continue

Page 12: How to access the external database using the Android

12

lighttpd.access.log

Page 13: How to access the external database using the Android

13

development.log (Rails)

Page 14: How to access the external database using the Android

14

CASE 3:

REMOVE IT!!!

Page 15: How to access the external database using the Android

15

HeaderNO Expect: 100-Continue

Page 16: How to access the external database using the Android

16

lighttpd.access.log

Page 17: How to access the external database using the Android

17

development.log (Rails)

Page 18: How to access the external database using the Android

18

Special thanks to Michael Mayo

http://overhrd.com/?p=189


Recommended