I am trying to understand how broadcast receiver works internally.
What happens internally when I call registerReceiver()
method? Does it create a service internally ?
What happens internally when I call sendBroadcast
?
If I have to implement my own BroadcastReceiver
class (without extending the Android BroadcastReceiver
class) how can I achieve it?
I did a lot of research, but I only found how BroadcastReceiver
works. I looked at the Android source code too to find out how it works, but it didn't help either.