List of usage examples for android.util Printer Printer
Printer
From source file:com.idisplay.base.IDisplayApp.java
private void dumpMainLooper(String str) { try {//from ww w . ja v a 2 s . co m Looper mainLooper = getMainLooper(); if (mainLooper != null) { Logger.d("Main Thread " + str + " Looper:"); try { mainLooper.dump(new Printer() { public void println(String str) { Logger.d(str); } }, StringUtils.EMPTY); return; } catch (Throwable th) { Logger.d("Main Thread " + str + " Looper error", th); } } Logger.e("Main Thread " + str + " Looper is NULL"); } catch (Throwable th2) { Logger.d("Main Thread " + str + " get Looper error", th2); } }