This is sometimes easier than running on the AVD device (emulated devices tend to be slow and lack certain sensors). First one need to put the phone in developer mode and allow third party software through the phones settings. Then just plug in the USB cable and run the program and it should detect the device as a target.