用adb命令启动停止Android程序
2015-04-24 11:41
621 查看
开启apk应用
其中"breakan.test/breakan.test.TestActivity"中的"breakan.test"是程序的包名,"TestActivity"是程序Activity类的类名。
我们来看下adb shell am命令的帮助。
停止APK应用
adb shell am force-stop 包名
adb shell am force-stop cn.net.rhmkphji.hqjtks.zpqvk
adb shell am start -n breakan.test/breakan.test.TestActivity
其中"breakan.test/breakan.test.TestActivity"中的"breakan.test"是程序的包名,"TestActivity"是程序Activity类的类名。
我们来看下adb shell am命令的帮助。
usage: am [subcommand] [options] start an Activity: am start [-D] [-W] <INTENT> -D: enable debugging -W: wait for launch to complete start a Service: am startservice <INTENT> send a broadcast Intent: am broadcast <INTENT> start an Instrumentation: am instrument [flags] <COMPONENT> -r: print raw results (otherwise decode REPORT_KEY_STREAMRESULT) -e <NAME> <VALUE>: set argument <NAME> to <VALUE> -p <FILE>: write profiling data to <FILE> -w: wait for instrumentation to finish before returning start profiling: am profile <PROCESS> start <FILE> stop profiling: am profile <PROCESS> stop <INTENT> specifications include these flags: [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>] [-c <CATEGORY> [-c <CATEGORY>] ...] [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...] [--esn <EXTRA_KEY> ...] [--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...] [-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...] [-n <COMPONENT>] [-f <FLAGS>] [--grant-read-uri-permission] [--grant-write-uri-permission] [--debug-log-resolution] [--activity-brought-to-front] [--activity-clear-top] [--activity-clear-when-task-reset] [--activity-exclude-from-recents] [--activity-launched-from-history] [--activity-multiple-task] [--activity-no-animation] [--activity-no-history] [--activity-no-user-action] [--activity-previous-is-top] [--activity-reorder-to-front] [--activity-reset-task-if-needed] [--activity-single-top] [--receiver-registered-only] [--receiver-replace-pending] [<URI>]
停止APK应用
adb shell am force-stop 包名
adb shell am force-stop cn.net.rhmkphji.hqjtks.zpqvk
相关文章推荐
- 如何用adb命令启动你的Android程序
- 如何用adb命令启动你的Android程序
- 如何用adb命令启动你的Android程序
- 如何用adb命令启动你的Android程序
- 如何用adb命令启动你的Android程序
- 使用adb命令启动Android程序
- 如何用adb命令启动你的Android程序
- Android cmd下运行命令“adb无法启动此程序”
- adb shell 启动,停止 android 应用程序
- Android 通过adb shell命令查看内存,CPU,启动时间,电量等信息
- Android使用adb命令启动应用程序时碰到的问题!( android:exported)
- Android adb.exe程序启动不起来,如何处理
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- adb shell 启动,停止 android 应用程序
- adb shell命令--命令创建模拟器并启动,命令打开手机程序的界面
- 转载 Android 通过adb shell命令查看内存,CPU,启动时间,电量等信息
- adb shell 启动,停止 android 应用程序
- adb shell命令--命令创建模拟器并启动,命令打开手机程序的界面
- adb启动程序命令:adb shell am start
- adb 命令设置android语言,emulator启动模拟器的时候设置语言