We are creating a location-based messaging application that uses Parse.com as a back-end (Parse.com is similar to Urban Airship / PubNub etc.), and now we want to switch to our own back-end for the best control. To do this, we built a back-end based on node.js with functionality open via the REST API
To use this API, we want to create an Android library (similar to the Parse.com Android SDK ) that abstracts all HTTP requests / Reply or the REST API calls and provides direct functions for various operations such as getUsers (), sendMessage () and etc.
Ways to implement the REST API Client on Android:
Now, given that we want to create the android library, and at the same time, REST API calls can occur when the user interacts with the application, which approach is best suited? I am open to other suggestions and recommendations.
UPDATE . First, we created our own library using IntentService + ResultReceiver, which worked great. But later, we came across Android Async Http . Use it. It's amazing!
android rest asynchronous android-library intentservice
Madhur Nov 18 '12 at 20:11 2012-11-18 20:11
source share