Running Application on Device Through Eclipse
Jump to navigation
Jump to search
Running Application Through Hardware Device
- Start Eclipse.
- Plug Android device into computer with USB cable.
- Follow instructions on ensuring your device will be recognized by your OS: Using Hardware Devices.
- Hit "Run" in Eclipse, if your device is plugged in and recognized then a "Device Chooser" window will pop up. Select your device you want to run it on.
- Your phone will jump to the running app on the phone whether it is locked or in another application.
Viewing the Debug Log in Eclipse
- With your device plugged in and the application running, go to Window > Show View > Other...
- A pane will pop up, type "LogCat" into the search bar, select it and hit enter.
- An in Eclipse pane will appear with the real time device log. Messages written to the this log using android.util.log. Happy Debugging.