broadcastreceiver - How broadcast receiver works in Android -
i have question broadcastreceiver in android, say, system broadcast receiver boot_completed
. if have written listener broadcast after system booted , installed it. how android system know has notify application, since application not running installed? that, broadcastreceiver derived classes in memory (or system loads them in memory after bootup) , whenever broadcast happens, relevant application can receive it.
thanks braj
when broadcast boot_completed sent, android system checks manifests of loaded apps see if meant handle message. same true implicit intents, , broadcasts.
manifests public facing , allows system know app can , do.
Comments
Post a Comment