如何调试谷歌玻璃GDK应用程序?应用程序、玻璃、GDK

由网友(爱人爱人爱你多久才是人)分享简介:这是很容易调试,因为大多数人发起的活动Android应用程序,并保持断点是所有需要。如何作为服务被触发的声音,不显式启动活动上安装调试基于GDK谷歌玻璃的应用程序?It is easy to debug Android applications as most of them launch an activity a...

这是很容易调试,因为大多数人发起的活动Android应用程序,并保持断点是所有需要。如何作为服务被触发的声音,不显式启动活动上安装调试基于GDK谷歌玻璃的应用程序?

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?

推荐答案

原路任何Android的服务调试。只要任意位置添加下面一行在code和code任何断点后,本可以用来停止运行。

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();

由于这一点 - http://www.helloandroid.com/tutorials/how-debug-service

阅读全文

相关推荐

最新文章