rendered paste bodytry{ boolean on = LocalDevice.getLocalDevice().isPowerOn(); if(on) { state = MULTI; selected = LEFT; items[0] = "Bluetooth is ON"; Jeckers.getDisplay().setCurrent(new Alert("ON", "Bluetooth is ON", null, AlertType.ERROR)); } else { items[0] = "Bluetooth is OFF"; Jeckers.getDisplay().setCurrent(new Alert("OFF", "Bluetooth is OFF", null, AlertType.ERROR)); //throw new BluetoothStateException(); }} catch (Throwable bse) { bse.printStackTrace(); Jeckers.getDisplay().setCurrent(new Alert(Lang.get("Bluetooth off"), Lang.get("Bluetooth is off, switch it on first") + ": " + bse, null, AlertType.ERROR));}return;