Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Google Glass GDK application?

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?

like image 466
sivag1 Avatar asked Dec 13 '13 19:12

sivag1


People also ask

Which app is used to configure Google Glass?

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.

Is Google still working on 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.


1 Answers

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

like image 57
sivag1 Avatar answered Oct 23 '22 03:10

sivag1