How to debug accessibility service?

谁说我不能喝 提交于 2019-12-21 09:24:54

问题


I have some problem with debugging AccessibilityService and can not find a solution - with every deployment/debug from Eclipse the service is not restarted automatically and it requires the manual action of restarting the service.

What I am forced to do now:

  1. I am adding some new code and deploying/debugging with Eclipse.
  2. Application is deployed correctly and started but the new version of service is not started (messages from service are not shown and breakpoints are not working).
  3. I am manually opening settings -> accessibility and see that my service runs.
  4. I am manually stopping and starting service - now service is working.

I want to do it in a faster way:

  • I am adding some code and deploying, service is restarted, and then the breakpoint works without any manual boring restarting!

Could you suggest how to debug accessibility service without manually restarting?

来源:https://stackoverflow.com/questions/14511464/how-to-debug-accessibility-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!