Communicating with remote server in Android
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
精彩评论