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

编程入门 行业动态 更新时间:2024-10-19 06:26:02
本文介绍了如何调试谷歌玻璃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();

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

更多推荐

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

本文发布于:2023-11-11 05:56:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1577570.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   玻璃   GDK

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!