android前台服务:
android-安卓如何开启前台服务?foregroundService的使用方法,什么是前台服务?_foregroundservicetype-CSDN博客
BroadcastReceiver:
使用BroadcastReceiver发送和接收广播_broadcastreceiver广播中,发送一个广播是哪个方法-CSDN博客
Activity intent
Service
BroadcastReceiver
ContentProvider
不要在广播里添加过多逻辑或者进行任何耗时操作,因为在广播中是不允许开辟线程的, 当onReceiver( )方法运行较长时间(超过10秒)还没有结束的话,那么程序会报错(ANR), 广播更多的时候扮演的是一个打开其他组件的角色,比如启动Service,Notification提示, Activity等!
ContentResolver:数据访问
https://zhuanlan.zhihu.com/p/40146450