This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1. Connecting to Web Services on Android Sean Sullivan June 2,
2010
9. HttpClient programming synchronous invocation public
HttpResponse execute(HttpUriRequest request) asynchronous
invocation public HttpResponse execute(HttpUriRequest request,
ResponseHandler handler)
10. UI programming user clicks on button onClick listener Dont
block the UI thread! Tip: use java.lang.Runnable
11. Response formats XML JSON RSS, Atom other
12. JSON processing json.org package Google GSON library
XStream + Jettison * json-lib * * does not work on Android 1.x
13. XML processing org.w3c.dom package (DOM) org.xml.sax
package (SAX) org.xmlpull package (XPP) XStream JDOM Apache
XmlBeans* * does not work on Android 1.x
14. RSS and Atom Rome library * Apache Abdera library * * does
not work on Android 1.x