Do I have the right to the main differences between activity, service and broadcast on Android

I found that the key components of Android are a bit confusing, so I made a diagram for me to remember. But I'm not sure if I'm right or not. (This will be a disaster if I remember the wrong things correctly.) So, I decided to post a stack overflow question to check.

  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)
+4
source share
1 answer

Essentially, yes.
See this page in the Android Developer's Guide, which explains pretty much what you installed.

So, now you can relax, you are right :)

+3
source

Source: https://habr.com/ru/post/1391073/


All Articles