Android BroadcastReceiver with no intent-filter

前端 未结 4 522
孤独总比滥情好
孤独总比滥情好 2021-01-01 22:43

I\'ve come across something like this in the AndroidManifest.xml:


The above

4条回答
  •  借酒劲吻你
    2021-01-01 23:06

    You need to register your receiver specifying the intents you want to receive and if you want to receive all the intents then mention it.

    Intent and Intent Filter are clearly mentioned in the API how they function. All intents concept are not supported in the public API.

    Note: You can still use this type of receiver within your app by sending broadcast within your app.

提交回复
热议问题