public void disconnect() { if (packetManager.isRunning()) { RobotResolver.getInstance(context).stop(); packetManager.stop(); } }