Submit Search
Upload
Connecting to Web Services on Android June 2 2010
•
1 like
•
2,100 views
sullis
Follow
Open Source Bridge 2010 June 2, 2010 Portland Oregon
Read less
Read more
Technology
Report
Share
Report
Share
1 of 27
Download now
Download to read offline
Recommended
Web Services and Android - OSSPAC 2009
Web Services and Android - OSSPAC 2009
sullis
Connecting to Web Services on Android
Connecting to Web Services on Android
sullis
Android webservices
Android webservices
Krazy Koder
Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009
Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009
Aduci
DAST в CI/CD, Ольга Свиридова
DAST в CI/CD, Ольга Свиридова
Mail.ru Group
Real time web: is there a life without socket.io and node.js?
Real time web: is there a life without socket.io and node.js?
Eduard Trayan
What i got wrong when somebody asked me to deploy a web app
What i got wrong when somebody asked me to deploy a web app
talkingquickly
How to Start Performance Testing?
How to Start Performance Testing?
Nebojša Videnov
Recommended
Web Services and Android - OSSPAC 2009
Web Services and Android - OSSPAC 2009
sullis
Connecting to Web Services on Android
Connecting to Web Services on Android
sullis
Android webservices
Android webservices
Krazy Koder
Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009
Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009
Aduci
DAST в CI/CD, Ольга Свиридова
DAST в CI/CD, Ольга Свиридова
Mail.ru Group
Real time web: is there a life without socket.io and node.js?
Real time web: is there a life without socket.io and node.js?
Eduard Trayan
What i got wrong when somebody asked me to deploy a web app
What i got wrong when somebody asked me to deploy a web app
talkingquickly
How to Start Performance Testing?
How to Start Performance Testing?
Nebojša Videnov
Building Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using Websockets
Naresh Chintalcheru
AtlasCamp 2014: Building a Connect Add-on With Your Own Stack
AtlasCamp 2014: Building a Connect Add-on With Your Own Stack
Atlassian
Profiling PHP with Xdebug / Webgrind
Profiling PHP with Xdebug / Webgrind
Sam Keen
Bug Bounty Hunter Methodology - Nullcon 2016
Bug Bounty Hunter Methodology - Nullcon 2016
bugcrowd
An introduction to PhantomJS: A headless browser for automation test.
An introduction to PhantomJS: A headless browser for automation test.
BugRaptors
How do I Write Testable Javascript so I can Test my CF API on Server and Client
How do I Write Testable Javascript so I can Test my CF API on Server and Client
ColdFusionConference
Vulnerability intelligence with vulners.com / Кирилл Ермаков, Игорь Булатенко...
Vulnerability intelligence with vulners.com / Кирилл Ермаков, Игорь Булатенко...
Ontico
Александр Сергиенко, Senior Android Developer, DataArt
Александр Сергиенко, Senior Android Developer, DataArt
Alina Vilk
Real time web (Orbited) at BCNE3
Real time web (Orbited) at BCNE3
Alex Kavanagh
Web Exploitation
Web Exploitation
UTD Computer Security Group
How to build a container monitoring solution - David Gildeh, CEO and Co-Found...
How to build a container monitoring solution - David Gildeh, CEO and Co-Found...
Outlyer
Web backends development using Python
Web backends development using Python
Ayun Park
Bigger Stronger Faster
Bigger Stronger Faster
Chris Love
Zombiejs
Zombiejs
Виктор Ткаченко
AtlasCamp 2014: Static Connect Add-ons
AtlasCamp 2014: Static Connect Add-ons
Atlassian
Alexander Mostovenko "'Devide at impera' with GraphQL and SSR"
Alexander Mostovenko "'Devide at impera' with GraphQL and SSR"
Fwdays
Introduction to Retrofit
Introduction to Retrofit
Kazuhiro Serizawa
Building RESTful APIs
Building RESTful APIs
Silota Inc.
HTTPS and HTTP/2
HTTPS and HTTP/2
MatthewWalker9
Detecting headless browsers
Detecting headless browsers
Sergey Shekyan
Connecting to-web-services-on-android-4577
Connecting to-web-services-on-android-4577
sharvari123
Android lessons you won't learn in school
Android lessons you won't learn in school
Michael Galpin
More Related Content
What's hot
Building Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using Websockets
Naresh Chintalcheru
AtlasCamp 2014: Building a Connect Add-on With Your Own Stack
AtlasCamp 2014: Building a Connect Add-on With Your Own Stack
Atlassian
Profiling PHP with Xdebug / Webgrind
Profiling PHP with Xdebug / Webgrind
Sam Keen
Bug Bounty Hunter Methodology - Nullcon 2016
Bug Bounty Hunter Methodology - Nullcon 2016
bugcrowd
An introduction to PhantomJS: A headless browser for automation test.
An introduction to PhantomJS: A headless browser for automation test.
BugRaptors
How do I Write Testable Javascript so I can Test my CF API on Server and Client
How do I Write Testable Javascript so I can Test my CF API on Server and Client
ColdFusionConference
Vulnerability intelligence with vulners.com / Кирилл Ермаков, Игорь Булатенко...
Vulnerability intelligence with vulners.com / Кирилл Ермаков, Игорь Булатенко...
Ontico
Александр Сергиенко, Senior Android Developer, DataArt
Александр Сергиенко, Senior Android Developer, DataArt
Alina Vilk
Real time web (Orbited) at BCNE3
Real time web (Orbited) at BCNE3
Alex Kavanagh
Web Exploitation
Web Exploitation
UTD Computer Security Group
How to build a container monitoring solution - David Gildeh, CEO and Co-Found...
How to build a container monitoring solution - David Gildeh, CEO and Co-Found...
Outlyer
Web backends development using Python
Web backends development using Python
Ayun Park
Bigger Stronger Faster
Bigger Stronger Faster
Chris Love
Zombiejs
Zombiejs
Виктор Ткаченко
AtlasCamp 2014: Static Connect Add-ons
AtlasCamp 2014: Static Connect Add-ons
Atlassian
Alexander Mostovenko "'Devide at impera' with GraphQL and SSR"
Alexander Mostovenko "'Devide at impera' with GraphQL and SSR"
Fwdays
Introduction to Retrofit
Introduction to Retrofit
Kazuhiro Serizawa
Building RESTful APIs
Building RESTful APIs
Silota Inc.
HTTPS and HTTP/2
HTTPS and HTTP/2
MatthewWalker9
Detecting headless browsers
Detecting headless browsers
Sergey Shekyan
What's hot
(20)
Building Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using Websockets
AtlasCamp 2014: Building a Connect Add-on With Your Own Stack
AtlasCamp 2014: Building a Connect Add-on With Your Own Stack
Profiling PHP with Xdebug / Webgrind
Profiling PHP with Xdebug / Webgrind
Bug Bounty Hunter Methodology - Nullcon 2016
Bug Bounty Hunter Methodology - Nullcon 2016
An introduction to PhantomJS: A headless browser for automation test.
An introduction to PhantomJS: A headless browser for automation test.
How do I Write Testable Javascript so I can Test my CF API on Server and Client
How do I Write Testable Javascript so I can Test my CF API on Server and Client
Vulnerability intelligence with vulners.com / Кирилл Ермаков, Игорь Булатенко...
Vulnerability intelligence with vulners.com / Кирилл Ермаков, Игорь Булатенко...
Александр Сергиенко, Senior Android Developer, DataArt
Александр Сергиенко, Senior Android Developer, DataArt
Real time web (Orbited) at BCNE3
Real time web (Orbited) at BCNE3
Web Exploitation
Web Exploitation
How to build a container monitoring solution - David Gildeh, CEO and Co-Found...
How to build a container monitoring solution - David Gildeh, CEO and Co-Found...
Web backends development using Python
Web backends development using Python
Bigger Stronger Faster
Bigger Stronger Faster
Zombiejs
Zombiejs
AtlasCamp 2014: Static Connect Add-ons
AtlasCamp 2014: Static Connect Add-ons
Alexander Mostovenko "'Devide at impera' with GraphQL and SSR"
Alexander Mostovenko "'Devide at impera' with GraphQL and SSR"
Introduction to Retrofit
Introduction to Retrofit
Building RESTful APIs
Building RESTful APIs
HTTPS and HTTP/2
HTTPS and HTTP/2
Detecting headless browsers
Detecting headless browsers
Similar to Connecting to Web Services on Android June 2 2010
Connecting to-web-services-on-android-4577
Connecting to-web-services-on-android-4577
sharvari123
Android lessons you won't learn in school
Android lessons you won't learn in school
Michael Galpin
マイクロサービスバックエンドAPIのためのRESTとgRPC
マイクロサービスバックエンドAPIのためのRESTとgRPC
disc99_
Barcamp Bangkhen :: Robot Framework
Barcamp Bangkhen :: Robot Framework
Somkiat Puisungnoen
Introduction to Robot Framework
Introduction to Robot Framework
Somkiat Puisungnoen
DanNotes 2013: OpenNTF Domino API
DanNotes 2013: OpenNTF Domino API
Paul Withers
End-to-end W3C APIs - tpac 2012
End-to-end W3C APIs - tpac 2012
Alexandre Morgaut
Middleware in Golang: InVision's Rye
Middleware in Golang: InVision's Rye
Cale Hoopes
In-browser storage and me
In-browser storage and me
Jason Casden
Lecture05.pptx
Lecture05.pptx
MrVMNair
ITT 2014 - Erik Hellmann - Android Programming - Smarter and Better Networking
ITT 2014 - Erik Hellmann - Android Programming - Smarter and Better Networking
Istanbul Tech Talks
How to Contribute to Apache Usergrid
How to Contribute to Apache Usergrid
David M. Johnson
automated-automation-of-rest-apis.pptx
automated-automation-of-rest-apis.pptx
Aditya274010
Maine WordPress Meetup JSON REST API, 3/16/2016
Maine WordPress Meetup JSON REST API, 3/16/2016
Andre Gagnon
Inside Of Mbga Open Platform
Inside Of Mbga Open Platform
Hideo Kimura
Building Awesome APIs with Lumen
Building Awesome APIs with Lumen
Kit Brennan
01/2009 - Portral development with liferay
01/2009 - Portral development with liferay
daveayan
Java scriptwidgetdevelopmentjstanbul2012
Java scriptwidgetdevelopmentjstanbul2012
Volkan Özçelik
External JavaScript Widget Development Best Practices
External JavaScript Widget Development Best Practices
Volkan Özçelik
External JavaScript Widget Development Best Practices (updated) (v.1.1)
External JavaScript Widget Development Best Practices (updated) (v.1.1)
Volkan Özçelik
Similar to Connecting to Web Services on Android June 2 2010
(20)
Connecting to-web-services-on-android-4577
Connecting to-web-services-on-android-4577
Android lessons you won't learn in school
Android lessons you won't learn in school
マイクロサービスバックエンドAPIのためのRESTとgRPC
マイクロサービスバックエンドAPIのためのRESTとgRPC
Barcamp Bangkhen :: Robot Framework
Barcamp Bangkhen :: Robot Framework
Introduction to Robot Framework
Introduction to Robot Framework
DanNotes 2013: OpenNTF Domino API
DanNotes 2013: OpenNTF Domino API
End-to-end W3C APIs - tpac 2012
End-to-end W3C APIs - tpac 2012
Middleware in Golang: InVision's Rye
Middleware in Golang: InVision's Rye
In-browser storage and me
In-browser storage and me
Lecture05.pptx
Lecture05.pptx
ITT 2014 - Erik Hellmann - Android Programming - Smarter and Better Networking
ITT 2014 - Erik Hellmann - Android Programming - Smarter and Better Networking
How to Contribute to Apache Usergrid
How to Contribute to Apache Usergrid
automated-automation-of-rest-apis.pptx
automated-automation-of-rest-apis.pptx
Maine WordPress Meetup JSON REST API, 3/16/2016
Maine WordPress Meetup JSON REST API, 3/16/2016
Inside Of Mbga Open Platform
Inside Of Mbga Open Platform
Building Awesome APIs with Lumen
Building Awesome APIs with Lumen
01/2009 - Portral development with liferay
01/2009 - Portral development with liferay
Java scriptwidgetdevelopmentjstanbul2012
Java scriptwidgetdevelopmentjstanbul2012
External JavaScript Widget Development Best Practices
External JavaScript Widget Development Best Practices
External JavaScript Widget Development Best Practices (updated) (v.1.1)
External JavaScript Widget Development Best Practices (updated) (v.1.1)
More from sullis
Getting started with MongoDB and Scala - Open Source Bridge 2012
Getting started with MongoDB and Scala - Open Source Bridge 2012
sullis
Production Ready Web Services with Dropwizard
Production Ready Web Services with Dropwizard
sullis
Incremental deployment of new features
Incremental deployment of new features
sullis
Comparing JSON Libraries - July 19 2011
Comparing JSON Libraries - July 19 2011
sullis
Android - Open Source Bridge 2011
Android - Open Source Bridge 2011
sullis
Android 3.1 - Portland Code Camp 2011
Android 3.1 - Portland Code Camp 2011
sullis
Android 3.0 Portland Java User Group 2011-03-15
Android 3.0 Portland Java User Group 2011-03-15
sullis
GWT 2.0 - OSCON 2010
GWT 2.0 - OSCON 2010
sullis
Programming WebSockets - OSCON 2010
Programming WebSockets - OSCON 2010
sullis
Programming WebSockets - April 20 2010
Programming WebSockets - April 20 2010
sullis
WebDAV - April 15 2008
WebDAV - April 15 2008
sullis
GWT 2.0 - December 15 2009
GWT 2.0 - December 15 2009
sullis
Google App Engine - September 17 2009
Google App Engine - September 17 2009
sullis
Google App Engine - Portland Java User Group - August 18 2009
Google App Engine - Portland Java User Group - August 18 2009
sullis
Domo Arigato Mr. Roboto - Open Source Bridge 2009
Domo Arigato Mr. Roboto - Open Source Bridge 2009
sullis
Java and JSON - UJUG - March 19 2009
Java and JSON - UJUG - March 19 2009
sullis
OAuth and REST web services
OAuth and REST web services
sullis
Introduction to Android - Mobile Fest Singapore 2009
Introduction to Android - Mobile Fest Singapore 2009
sullis
Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009
sullis
Introduction to Android - Mobile Portland
Introduction to Android - Mobile Portland
sullis
More from sullis
(20)
Getting started with MongoDB and Scala - Open Source Bridge 2012
Getting started with MongoDB and Scala - Open Source Bridge 2012
Production Ready Web Services with Dropwizard
Production Ready Web Services with Dropwizard
Incremental deployment of new features
Incremental deployment of new features
Comparing JSON Libraries - July 19 2011
Comparing JSON Libraries - July 19 2011
Android - Open Source Bridge 2011
Android - Open Source Bridge 2011
Android 3.1 - Portland Code Camp 2011
Android 3.1 - Portland Code Camp 2011
Android 3.0 Portland Java User Group 2011-03-15
Android 3.0 Portland Java User Group 2011-03-15
GWT 2.0 - OSCON 2010
GWT 2.0 - OSCON 2010
Programming WebSockets - OSCON 2010
Programming WebSockets - OSCON 2010
Programming WebSockets - April 20 2010
Programming WebSockets - April 20 2010
WebDAV - April 15 2008
WebDAV - April 15 2008
GWT 2.0 - December 15 2009
GWT 2.0 - December 15 2009
Google App Engine - September 17 2009
Google App Engine - September 17 2009
Google App Engine - Portland Java User Group - August 18 2009
Google App Engine - Portland Java User Group - August 18 2009
Domo Arigato Mr. Roboto - Open Source Bridge 2009
Domo Arigato Mr. Roboto - Open Source Bridge 2009
Java and JSON - UJUG - March 19 2009
Java and JSON - UJUG - March 19 2009
OAuth and REST web services
OAuth and REST web services
Introduction to Android - Mobile Fest Singapore 2009
Introduction to Android - Mobile Fest Singapore 2009
Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009
Introduction to Android - Mobile Portland
Introduction to Android - Mobile Portland
Recently uploaded
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
Softradix Technologies
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Alan Dix
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
XfilesPro
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
ThousandEyes
Key Features Of Token Development (1).pptx
Key Features Of Token Development (1).pptx
LBM Solutions
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Malak Abu Hammad
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
Neo4j
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Memoori
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
Recently uploaded
(20)
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Key Features Of Token Development (1).pptx
Key Features Of Token Development (1).pptx
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Connecting to Web Services on Android June 2 2010
1.
Connecting to Web Services
on Android Sean Sullivan June 2, 2010
2.
3.
4.
5.
6.
7.
8.
9.
HTTP request HTTP response
10.
11.
•
HTTP • XML • JSON • OAuth
12.
+ HTTP Option 1
• java.net.URL • java.net.HttpURLConnection Option 2 • HttpClient 4.0 API
13.
HttpClient 4.0 API •
org.apache.http.client.HttpClient • org.apache.http.impl.client.DefaultHttpClient
14.
HttpClient 4.0 API •
org.apache.http.client.methods.HttpGet • org.apache.http.client.methods.HttpPost • org.apache.http.client.methods.HttpPut • org.apache.http.client.methods.HttpDelete
15.
HttpClient 4.0 API •
org.apache.http.HttpResponse • org.apache.http.StatusLine • org.apache.http.HttpEntity • org.apache.http.utils.EntityUtils
16.
HttpClient programming • HTTP
response status code • I/O exceptions • timeouts • gzip
17.
HttpClient programming synchronous invocation
public HttpResponse execute(HttpUriRequest request) asynchronous invocation public HttpResponse execute(HttpUriRequest request, ResponseHandler handler)
18.
UI programming • user
clicks on button • onClick listener • Don’t block the UI thread! • Tip: use java.lang.Runnable
19.
Response formats • XML •
JSON • RSS, Atom • other
20.
JSON processing • json.org
package • Google GSON library • XStream + Jettison * • json-lib * * does not work on Android 1.x
21.
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
22.
RSS and Atom •
Rome library * • Apache Abdera library * * does not work on Android 1.x
23.
Client libraries
code.google.com/p/jfireeagle code.google.com/p/jpoco code.google.com/p/meetup-java-client
24.
Client libraries
code.google.com/p/gdata-java-client code.google.com/p/upcoming-java-client flickrj.sourceforge.net
25.
26.
Conclusion • HttpClient API •
use XStream for XML processing • use Google GSON for JSON processing • OAuth has a learning curve
27.
Thank you
Download now