Android开机广播
16lz
2021-12-04
每次开机,android会发送一个广播,如果需要在android启动的时候做一些操作,需要接收广播。
AndroidManifest.xml配置如下:
<receiver android:name=".exercise.boot.BootBroadcastReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter></receiver>
更多相关文章
- android广播动态注册与发送流程分析
- TextView的android:maxHeight,android:minHeight的正确设置
- Android面试系列文章2018之Android部分Broadcast篇
- Android面试系列文章2018之Android部分Broadcast篇
- Android知识图谱:我们到底需要学习哪些Android知识?
- Android知识图谱:我们到底需要学习哪些Android知识?
- Android设置Activity背景为透明style
- 【Android】Android(安卓)开机广播的使用
- Android(安卓)中 LocalBroadcastManager 的基本使用