All pastes #756415 Raw Edit

Unnamed

public java v1 · immutable
#756415 ·published 2007-10-31 14:00 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;