是否有可能"动力站和QUOT;一个应用程序,我在终端使用ADB调试? [英] Is it possible to "force stop" an application I am debugging using adb in terminal?

查看:128
本文介绍了是否有可能"动力站和QUOT;一个应用程序,我在终端使用ADB调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个应用程序,并在第一次安装调试某些动作我发现,使用终端命令:

I am developing an app, and for debugging certain actions on first installation I found that using the terminal command:

./adb uninstall <package-name>

当时很多比快速导航到设置,应用程序,等待应用程序加载,找到你的应用程序,并卸载它。我强烈推荐它的人,它没有使用它进行调试。

was a lot fast than navigating to settings, apps, waiting for the apps to load, finding your app, and uninstalling it. I would strongly recommend it for anyone that doesn't already use it for debugging.

现在我想在我的应用程序的部队密切的一部分,我找不到任何地方在Android文档,对如何通过ADB命令强制关闭应用程序的说明。

Now I am trying to work on the force close part of my app, and I can't find anywhere in the android doc, instructions on how to force close an app by adb command.

这可能吗?

推荐答案

您可以通过他的PID使用闭一只

You can close one by his pid using

adb shell kill <PID>

但我不知道有一个包名做这件事的。

but I'm not sure of doing it with a package name.

这篇关于是否有可能&QUOT;动力站和QUOT;一个应用程序,我在终端使用ADB调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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