Debugging
- Android Device Monitor
- Provides a UI for debugging Android apps
- For the emulator you can simulate telephony and location activity
- You can access the information through adb logcat, or
in Android Studio open View->Tool Windows->Logcat.
- You can choose the device, level of debugging, do regexp matching,
select app to monitor, etc.
- Adding logging
- The Log.X methods provide logging and debug output
- X ∈ {e,w,i,d,v}, in increasing order of verbosity, and
decreasing level of priority
- Different Xs can be used for different types of messages, and
filters can be applied to selectively view messages.
- Debugging Hello Button