Back to project page PetBook.
The source code is released under:
MIT License
If you think the Android project PetBook listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.edinubuntu.petlove.model; //www. j a va 2 s. c o m import com.loopj.android.http.AsyncHttpClient; import com.loopj.android.http.AsyncHttpResponseHandler; import com.loopj.android.http.RequestParams; /** * Created by edward_chiang on 13/8/12. */ public class AdaptPetsModel extends AsyncModel { private AsyncHttpClient asyncHttpClient; public AdaptPetsModel() { asyncHttpClient = new AsyncHttpClient(); } public void load(AsyncHttpResponseHandler responseHandler) { String apiCall = "http://60.199.253.136/api/action/datastore_search?resource_id=c57f54e2-8ac3-4d30-bce0-637a8968796e&limit=500"; asyncHttpClient.get(apiCall, new RequestParams(), responseHandler); } }