我想将一个字符串发送到一个活动中:
public class MyHttpClientUsage {
public MyHttpClientUsage(){}
public void getInfoAbout() throws HttpException{
RequestParams params = new RequestParams();
params.put("a", "Static");
params.put("content", "47");
MyHttpClient.get("", params, new AsyncHttpResponseHandler(){
@Override
public void onSuccess(String response) {
System.out.println(response);
//How can I send this response
}
});
}
}
我不能使用意图,因为get()
方法是静态的,所以我不能实例化 Context 或MyHttpClient
.