Example usage for android.util Printer Printer

List of usage examples for android.util Printer Printer

Introduction

In this page you can find the example usage for android.util Printer Printer.

Prototype

Printer

Source Link

Usage

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);
    }
}