/** * Returns whether the {@link AndroidDebugBridge} object is still connected to the adb daemon. */ public boolean isConnected() { MonitorThread monitorThread = MonitorThread.getInstance(); if (mDeviceMonitor != null && monitorThread != null) { return mDeviceMonitor.isMonitoring() && monitorThread.getState() != State.TERMINATED; } return false; }
/** * Returns whether the {@link AndroidDebugBridge} object is still connected to the adb daemon. */ public boolean isConnected() { MonitorThread monitorThread = MonitorThread.getInstance(); if (mDeviceMonitor != null && monitorThread != null) { return mDeviceMonitor.isMonitoring() && monitorThread.getState() != State.TERMINATED; } return false; }