我可以在 Android 中以编程方式捕获 Volley 调试消息吗?
Can i catch Volley Debug message programmatically in Android?
我可以在 Android 中以编程方式捕获 Volley 调试消息吗?
例如:D/Volley﹕[1] Request.finish:...
(来自 logcat 调试日志级别)
Volley 发这条消息我想做点什么
RequestQueue.RequestFinishedListener listener =
new RequestQueue.RequestFinishedListener()
{ @Override public void onRequestFinished(Request request)
{
if(request.equals(yourRequest))
{
// what you want...
}
}
}; requestQueue.addRequestFinishedListener(listener);
我可以在 Android 中以编程方式捕获 Volley 调试消息吗? 例如:D/Volley﹕[1] Request.finish:... (来自 logcat 调试日志级别) Volley 发这条消息我想做点什么
RequestQueue.RequestFinishedListener listener =
new RequestQueue.RequestFinishedListener()
{ @Override public void onRequestFinished(Request request)
{
if(request.equals(yourRequest))
{
// what you want...
}
}
}; requestQueue.addRequestFinishedListener(listener);