All pastes #756408 Raw Edit

Someone

public java v1 · immutable
#756408 ·published 2007-10-31 13:57 UTC
rendered paste body
					try{						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;