【发布时间】:2017-11-13 12:18:30
【问题描述】:
我想在android中打印出请求,但是当我使用toast方法时,它无法解析该方法。
这是我的代码,
AsyncHttpClient client = new AsyncHttpClient();
client.get("http://localhost/moodle/webservice/rest/server.php?wstoken=0ac06623c66a3dd0e0e431f872a74710&wsfunction=core_user_create_users",params ,new AsyncHttpResponseHandler();
Toast.makeText(getApplicationContext(), client, Toast.LENGTH_LONG).show();
我想打印出请求。
【问题讨论】:
-
您到底想在吐司中显示什么??
-
我想打印出正在发送的请求。
-
您无法在您的 toast 中显示该客户端。您要显示该网址吗?
-
你能指导我怎么做吗