It is easy to debug Android applications as most of them launch an activity and keeping breakpoint is all it takes. How to debug a GDK based google glass app as the service is triggered on voice and does not explictly launch an activity on install?
Step 2: Open the MyGlass app on your phone Select the Google Account you want to connect to your Glass device. If you don't see the option to select an account, click the menu on the top right of the app and select Setup Glass.
These spectacles also come with AR and VR capabilities, USB-C charging, and an improved processor and camera. As a result, while it's no longer commercially available as a retail product, Google Glass still does exist.
Same way any Android service is debugged. Just add the below line anywhere in the code and any breakpoint in the code after this can be used to stop the run.
android.os.Debug.waitForDebugger();
Thanks to this - http://www.helloandroid.com/tutorials/how-debug-service
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With