[Solved] I want to print out the request using toast


You need to read documentation /implementation of AsyncHttpClient first. You won’t get response like that. You need to Override onSuccess/onFailure methods for your AsyncHttpResponseHandler()

client.get("http://localhost/moodle/webservice/rest/server.php?wstoken=0ac06623c66a3dd0e0e431f872a74710&wsfunction=core_user_create_users",params ,new AsyncHttpResponseHandler(){
        @Override
        public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {
        Toast.makeText(getApplicationContext(),  new String(responseBody), Toast.LENGTH_LONG).show();
       }
};

0

solved I want to print out the request using toast