You probably know your able to test drive your apps via the emulator which is part of the Android SDK. The emulator has advantage to set e.g. different screen-layouts etc, but personally I like to test drive my apps on an actual device. In this post I explain how you can very easily test your apps with a real Android device.
Step 1: Make your Android device ready for debugging.
Before you can start using your Android Device for testing; you need to allow your device to install apps from external sources.
For Android 4.0 and higher: go to settings – Developer Options – Check USB Debugging and Allow mock locations (see screenshots)
For Android versions lower than 4.0 (ICS): you can find these options under Apps (or Applications).
Step 2: Connect your device to Eclipse (via USB)
Now your device is ready, hook your device to your PC or Mac via a USB-cable and start Eclipse. Right click on your project and select Run As –> Android Application.
A new dialog screen appears. Select devices, and if everything went ok, you should see your device. Select your device and run your test.