我发现Android的关键组件有点困惑,所以我做了一个图表让我记住。但我不确定我是否正确。 (要是记错了就惨了。)所以我决定在Stack Overflow上发个问题看看。
item | ____ground | runtime reg? | 1 to ? ----------------------------------------------------------------------------------- activity | foreground | no | 1 (multiple candidates for implicit, finally still 1) ----------------------------------------------------------------------------------- service | background | no | 1 (multiple candidates for implicit, finally still 1) ----------------------------------------------------------------------------------- broadcast | background | yes | all (may not reach all if aborted for ordered)
最佳答案
本质上,是的。
参见 this page在 android 开发人员指南中,它解释了您所建立的内容。
所以你现在可以高枕无忧了,你是对的:)
关于android - 我对 Android 中 Activity 、服务和广播之间的主要区别是否正确?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8868302/