To run and deploy on a real device, first install the driver of the device. This varies as per device model and manufacturer.
These are some links you could refer:
Make sure the Android phone is connected to the computer through the USB cable. To check whether the phone is properly connected to your PC and in debug mode, please switch to the DDMS perspective.
If everything goes well, then run the app. Notice that a window appears ...