Inner class Java
<p>Good evening. I have some troubles with getting response.
I have two classes:
MyHttpClient with method get(), and String for response.</p>

<pre><code>public class MyHttpClient {

private static final String BASE_URL = "http://pgu.com";
private static String response;

private static AsyncHttpClient client = new AsyncHttpClient();

 public static void get(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {
      client.get(getAbsoluteUrl(url), params, responseHandler);
 }

 private static String getAbsoluteUrl(String relativeUrl) {
      return BASE_URL + relativeUrl;
  }

public static String getResponse() {
    return response;
}

public static void setResponse(String response) {
    response = response;
}
</code></pre>

<p>}</p>

<p>In second class I'm using GET method. Html is printing in LogCat, but setResponse doesn't work. How can I get the response String as a field of MyHttpClient ? </p>

<pre><code>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);   
                            //Write HTML in LogCat(work) 
                MyHttpClient.setResponse(response); //doesn't work
            }
    });
}
</code></pre>

<p>}</p>
