adb shell am
的用法。
am(activity manager)
命令是android增加的一个linux shell command,
该命令用于才命令行操作activity manager,相关的命令还有pm(package manager)
,wm(window manager)
等。
Usage
usage: am [subcommand] [options]
subcommand: start, startservice, broadcast
用法: am [start|startservice|broadcast] [options] <intent>
- start: 启动一个activity,如
adb shell am start http://www.baidu.com
- startservice: 启动一个service
- broadcast: 发送一个broadcast
<intent>
的形式如下:
1 | <INTENT> specifications include these flags and arguments: |
(待续)