import android from sys import stdout #BT_DEVICE_ID = '00:11:11:18:62:60' BT_DEVICE_ID = None # open the device selection popup droid = android.Android() droid.toggleBluetoothState(True) # turn on bluetooth print droid.bluetoothConnect('00001101-0000-1000-8000-00805F9B34FB', BT_DEVICE_ID) print droid.bluetoothGetConnectedDeviceName() while True: stdout.write(droid.bluetoothRead().result) droid.exit()