As we mentioned at the end of the last section, debugging/logging will be critical for us when we start writing new code. If you have ever tried to fix an issue blind without a log or ability to debug, then you will quickly appreciate the value of a good debugger. As it so happens, Chrome has a great set of tools that will help us do just that. Work through the following steps to set up remote web debugging on your Android device:
- Connect your device to your computer with a USB.
- Open Command Prompt window.
- Validate your connection by entering this:
adb devices
- The output of that command should show your connected device. You may be able to get away with bypassing this step, but you can avoid plenty of frustration later by just running this simple check.
- Ensure that all instances of the Chrome browser on your Android device are shut down.
- Open...