Enable debugging on your device: If you are using the emulator, this is enabled by default. But for a connected device, you need to
A. enable transfer data from the device in usb connection options.
B. enable debugging in the device developer options.
C. enable connection in bluetooth options.