问题描述
我可以在Android中以编程方式捕获Volley Debug消息吗? 例如:D / Volley:[1] Request.finish:...(来自logcat调试日志级别)当Volley发送此消息时,我想做点什么。
1楼
RequestQueue.RequestFinishedListener listener =
new RequestQueue.RequestFinishedListener()
{ @Override public void onRequestFinished(Request request)
{
if(request.equals(yourRequest))
{
// what you want...
}
}
}; requestQueue.addRequestFinishedListener(listener);