Bluetooth connection code moved into onHandleIntent