在命令行中通过adb shell am broadcast发送广播通知
16lz
2021-01-25
通过命令行执行adb shell am broadcast发送广播通知。
adb shell am broadcast 后面的参数有:
[-a ]
[-d
[-t
[-c
[-e|--es
[--ez
[-e|--ei
[-n
[-f
例如:
adb shell am broadcast -a com.android.test --es test_string "this is test string" --ei test_int 100 --ez test_boolean true
说明:蓝色为key,红色为alue,分别为String类型,int类型,boolean类型
更多相关文章
- Android简单模糊背景和圆形ImageView
- android 获取一个apk的信息
- Android周笔记(9.8-14)(持续更新)
- Android某些方法的参数
- Android: 启动另外的APP及传递参数
- 自定义ViewGroup获取子View参数
- Android笔记(1)——不同apk之间传递参数与数据
- Android中的加载动画效果
- Android(安卓)多种ViewType的ListView