Back to project page android-json-http.
The source code is released under:
Apache License
If you think the Android project android-json-http 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.example.util; //w w w . j ava 2s . c o m import com.example.constant.Url; import com.example.request.GeocodeReqBean; import com.example.response.GeocodeResBean; import com.open.jsonhttp.AsyncTask; import com.open.jsonhttp.OnRequestHttpListener; import com.open.jsonhttp.util.RequestUtil; public class AccessApiUtil { public static final int INDEX_GEOCODE = 1; /** * ??????????????????????? * * @param address * @param listener * @return */ public static AsyncTask gencode(String address, final OnRequestHttpListener listener) { GeocodeReqBean requestBean = new GeocodeReqBean(); requestBean.setSensor(true); requestBean.setAddress(address); return RequestUtil.request(listener, INDEX_GEOCODE, Url.GENCODE, requestBean, GeocodeResBean.class);// entry } }