• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Consuming WebServices in Android  RSS feed

 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few questions..

1. How to consume a web service in Android? Any pointers or link to simple tutorials would be useful.
2. Since there are performance issues associated with web services - what special care needs to be taken when using them in Android applications?


Thanks.





 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. How to consume a web service in Android? Any pointers or link to simple tutorials would be useful.


At the easiest, web services can be called using the HttpURLConnection class. If that's available (check the Java API implemented by Android), then you can call web services.

2. Since there are performance issues associated with web services - what special care needs to be taken when using them in Android applications?[/qupte]
What kind of performance issues are talking about? How would those affect the client?

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying UD

Android APIs does have HttpURLConnection class but I am having problem using it because of proxy and firewall settings.

By performance I meant speed; are there ways to improve the response times?

Thanks.
 
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

By performance I meant speed; are there ways to improve the response times?



Nothing particular to Android. Obviously, there are many many ways of improving performance of Web services and their consumption, but those are mostly Web service-related issues (e.g., using If-Modified-Since).

You might also consider using the Apache HttpClient API, available in Android. I tend to use that instead of URLConnection.
 
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpClient on Android
I just happened to come across this today. It is a pretty good introduction to using the Apache HttpClient on Android.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!