本文介绍了开始调试重启后的And​​r​​oid应用程序的权利的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直升机!

我与使用的应用程序,现在工作 BOOT_COMPLETED 接收器。

I am working right now with an application that uses BOOT_COMPLETED receiver.

所以,如果我想调试与同级车一些断点这个应用程序,我必须重新启动我的电话,并连接到它在适当的时间,但我总是为时已晚。

So if I want to debug this application with some breakpoints in its class, I have to reboot my phone and connect to it in the proper time, but I am always too late.

你有什么更好的解决方案是如何精确当它与设备重启的情况下开始了一生的时间来调试应用程序?

Have you got any better solutions how to debug my application exact when it starts its lifetime with device reboot case ?

谢谢!

推荐答案

您可以等待调试器 - Debug.waitForDebugger()

You can wait for a debugger - Debug.waitForDebugger()

这篇关于开始调试重启后的And​​r​​oid应用程序的权利的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 14:44
查看更多