Issue
I want to establish a connection between client and server in my app. I query this problem on website, it supply two solutions:
- Use the Apache
HttpClient
lib - Use the Java SDK
HttpConnection
class.
I wonder which one usually be used in common apps. Can they establish a safe or high-efficiency connection? If they can't finish the purpose, do I need use java socket to finish it by myself? Are there any existing libs now?
Sorry for that,this is my first time to use stackoverflow:),I just want to find a method of establishing a safe and high-efficiency connection,I don't want to compare httpclient with HttpConnection, which is better.
Solution
At the recent Google IO, Ficus Kirkpatrick had a talk on Volley, which included good examples on when to use, and especially when to not use. It might be relevant for you?
I'm unsure if the talk slides are available anywhere, but you can clone the codebase from here.
Cheers,
Answered By - Anders R. Bystrup
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.