Back to project page Music-Share-Android.
The source code is released under:
GNU General Public License
If you think the Android project Music-Share-Android 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.weibo.sdk.android.net; /*w w w. j a v a2s. c om*/ import com.weibo.sdk.android.WeiboException; import com.weibo.sdk.android.WeiboParameters; /** * * @author luopeng (luopeng@staff.sina.com.cn) */ public class AsyncWeiboRunner { /** * ???????????????????????????RequestListener?responsetext?????? * @param url ???????? * @param params ????????? * @param httpMethod "GET"or POST?? * @param listener ???? */ public static void request(final String url, final WeiboParameters params, final String httpMethod, final RequestListener listener) { new Thread() { @Override public void run() { try { String resp = HttpManager.openUrl(url, httpMethod, params, params.getValue("pic")); listener.onComplete(resp); } catch (WeiboException e) { listener.onError(e); } } }.start(); } }