Example usage for android.os Debug waitingForDebugger

List of usage examples for android.os Debug waitingForDebugger

Introduction

In this page you can find the example usage for android.os Debug waitingForDebugger.

Prototype

public static boolean waitingForDebugger() 

Source Link

Document

Returns "true" if one or more threads is waiting for a debugger to attach.

Usage

From source file:Main.java

public static boolean isDebuggerAttached() {
    return (Debug.isDebuggerConnected()) || (Debug.waitingForDebugger());
}

From source file:Main.java

public static boolean isDebuggerAttached() {
    return (Debug.isDebuggerConnected() || Debug.waitingForDebugger()) ? true : CLS_TRACE_DEFAULT;
}