I want to send a String into an Activity:
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
}
});
}
}
I can’t use intent because get() method is static so I can’t instance the Context or something else in MyHttpClient.
1 Answer