case CONNECT:
Util.debug("Task: handle - connect");
this.running = true;
+ this.beacon.connect();
+ this.sensors.connect();
this.notify("Connected", android.R.drawable.presence_online);
- //this.ibeacon.setBackgroundMode(this, false);
break;
// Stop client thread
case DISCONNECT:
Util.debug("Task: handle - register");
- //this.ibeacon.setBackgroundMode(this, true);
this.running = false;
+ this.beacon.disconnect();
+ this.sensors.disconnect();
this.stopForeground(true);
break;