get android AsyncHttpClient response after it finish
问题 hello i am using AsyncHttpClient to send request to restful api the problem is i want to have the result in onSuccess and pass it from the class who have this method to my activity public int send(JSONObject parameters,String email,String password){ int i =0; try { StringEntity entity = new StringEntity(parameters.toString()); entity.setContentType(new BasicHeader(HTTP.CONTENT_TYPE, "application/json")); client.setBasicAuth(email,password); client.post(context, "http://10.0.2.2:8080/webapi