如何调试谷歌玻璃GDK应用程序? [英] How to debug Google Glass GDK application?

查看:196
本文介绍了如何调试谷歌玻璃GDK应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是很容易调试,因为大多数人发起的活动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();

由于这一点 - <一个href="http://www.helloandroid.com/tutorials/how-debug-service">http://www.helloandroid.com/tutorials/how-debug-service

这篇关于如何调试谷歌玻璃GDK应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆