美文网首页
adb shell 发送广播

adb shell 发送广播

作者: ZZH的Android | 来源:发表于2019-04-16 17:20 被阅读0次

举个例子:

adb shell am broadcast -a com.android.test --es test_string "this is test string" --ei test_int 100 --ez test_boolean true

说明:-a 后面指的是广播的Action    --es、 --ei  、--ez是广播的参数,没有参数可以不加此项。

--es表示String类型参数

--ei表示int类型参数

--ez表示boolean类型参数

相关文章

网友评论

      本文标题:adb shell 发送广播

      本文链接:https://www.haomeiwen.com/subject/wnfiwqtx.html