List of usage examples for android.os Looper dump
public void dump(@NonNull Printer pw, @NonNull String prefix)
From source file:com.idisplay.base.IDisplayApp.java
private void dumpMainLooper(String str) { try {/* www . j a v a2 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); } }