Android Shell command to send broadcast.
来源:互联网 发布:淘宝门票类商品退款 编辑:程序博客网 时间:2024/06/04 00:46
有时候调试程序的时候,需要测试广播接收部分的代码。如测试BOOT_COMPLETED 完成时候的接收函数。可以使用下面的命令。
adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME -n com.mypackage/.boot.OnBootReceiver
具体命令参数意义,参照下面:
Android Shell command:
http://developer.android.com/tools/help/shell.html
0 0
- Android Shell command to send broadcast.
- 【Android】not allowed to send broadcast android.intent.action.MEDIA_MOUNTED
- Permission Denial: not allowed to send broadcast in android
- 解决 not allowed to send broadcast android.intent.action.MEDIA_MOUNTED
- android send broadcast接收不到
- Send AT command to model
- android中bug——not allowed to send broadcast android.intent.action.phone_state
- Android问题集锦之三十八:not allowed to send broadcast android.intent.action.MEDIA_MOUNTED
- Android问题集锦之三十八:not allowed to send broadcast android.intent.action.MEDIA_MOUNTED
- Android问题(二)not allowed to send broadcast android.intent.action.MEDIA_MOUNTED
- 解决android4.4中 Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED
- 关于 Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED from 错误原因
- Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED
- Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED解决方法
- Caused by: java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.int
- Permission Denial: not allowed to send broadcast android.intent.action.SCREEN_OFF
- Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED解决方法
- 解决android4.4中 Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED
- Leetcode-161.One Edit Distance
- 黑马程序员_多线程的死锁和多线程下的单例设计模式
- Docker实战(九):Docker安装ELK环境
- 和中位数有关的构造
- CentOS 7 mysql的yum源
- Android Shell command to send broadcast.
- python学习笔记----基本语法代码过手1
- 从Oracle Database 角度来看浪潮天梭K1主机的操作系统选择
- 填坑系列: jQuery解决复选框只能全选一次
- ES6学习——新的语法:数组元素Spread
- Ubuntu10下安装JAVA JDK
- Ubuntu10下MySQL搭建Amoeba_分片升级版
- 151224总结
- Ubuntu10下MySQL搭建Amoeba_分片