Android-Broadcast Receiver and Intent Filter

前端 未结 3 553
Happy的楠姐
Happy的楠姐 2020-12-30 12:20

I am new to android platform.please help me out how the Broadcast Receiver and Intent Filter behaves in android.please explain in simple line or with example.thanks in adv

3条回答
  •  醉酒成梦
    2020-12-30 12:47

    BroadcastReceiver : 'Gateway' with which your app tells to Android OS that, your app is interested in receiving information.

    Intent-Filter : Works with BroadcastReceiver and tells the 'What' information it is interested to receive in. For example, your app wants to receive information on Battery level.

提交回复
热议问题