首先写一个应用 注册一个开机完成广播接收者 <receiver android:name " MyBrocast" android:permission "android permission BROADCAST SMS"> <intent filter android:priority "2147483647"> <action android:name "android provider Telephony SMS RECEIVED" > < intent filter> <intent filter android:priority "2147483647"> <action android:name "android intent action BOOT COMPLETED" > < intent filter> < receiver> 然后在这个广播接收者接收到信息之后马上启动一个service public void onReceive Context context Intent intent { Log v "MyBrocast onReceive" "testtttttttttttt" ; if intent getAction equals Intent ACTION BOOT COMPLETED { Intent service new Intent context MyService class ; context startService service ; }">首先写一个应用 注册一个开机完成广播接收者 <receiver android:name " MyBrocast" android:permission "android permission BROADCAST SMS"> <intent filter android:priority "2147483647"> <action android:name [更多]
- 粉丝: 0
- 资源: 1
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助