开发者

Communicating with remote server in Android

开发者 https://www.devze.com 2022-12-28 04:49 出处:网络
As part of the college mini-project, I am developing a micro-blogging platf开发者_JAVA技巧orm for Android. I am planning to use Django framework in python to handle the communication between Android a

As part of the college mini-project, I am developing a micro-blogging platf开发者_JAVA技巧orm for Android. I am planning to use Django framework in python to handle the communication between Android and remote server so as to make database API independent. I heard its best practice to use HTTP methods for the communication. Which is the best site/book to learn using HTTP methods for Android? I


You can use the standard Java HTTP operations. Check out this SO post: How to send HTTP request in java?

There isn't anything particular about Android in this respect. Although make sure you include the android.permissions.INTERNET permission in your manifest file otherwise it will totally fail.


Check out this article piece by Android Developers to understand the difference between Apache HTTP and HTTPUrlConnection.

Article by Android Developers

0

精彩评论

暂无评论...
验证码 换一张
取 消