安卓开发
Context类
Activity
spinnner
checkbox
Service服务
https://www.jianshu.com/p/d870f99b675c
前台服务保活
Context.bindService()
Context.startService(intent)
跨进程aidl
远程服务=跨进程服务
https://blog.csdn.net/qq_30379689/article/details/79451596
通知
https://juejin.cn/post/7114112559334031368
通过 MediaSession 控制媒体
https://developer.android.google.cn/media/media3?hl=zh-cn
广播接收 BroadcastReceiver
发送3种广播
正常无序广播Context.sendBroadcast()
必须先注册,注册前是会漏收的
有序广播Context.sendOrderedBroadcast()
粘滞广播Context.sendStickyBroadcast()
一直运行,耗电,需要manifest声明
2种接受广播的声明
静态:manifest
动态:kotlin代码new BroadcastReceiver()