代码之家  ›  专栏  ›  技术社区  ›  Egos Zhang

如何使用adb shell terminate应用程序,如android studio的terminate应用程序?

  •  0
  • Egos Zhang  · 技术社区  · 9 年前

    enter image description here

    当我点击 terminate application ,它只需停止第一个活动,然后自行启动之前的活动。什么 终止应用程序 做如何使用 adb 做 终止应用程序 ?

    1 回复  |  直到 9 年前
        1
  •  2
  •   Sneh Pandya    9 年前

    Terminate Application 关闭或终止位于前台的当前应用程序或选定的应用程序&通过ADB连接。

    从终止应用程序 adb :

    ./adb shell am force-stop <yourp-package-name>