• 2022-05-29
    自定义的广播接收者需要继承()类
    A: BroadcastReceiver
    B: Broadcast
    C: Service
    D: ContentProvider
  • A

    内容

    • 0

      Android中定义广播接收者,定义一个类要继承BroadCastReceiver类.

    • 1

      下列选项中,属于在清单文件中配置广播接收者标签的是()。 A: <;broadcast/>; B: <;broadcastreceiver/>; C: <;ContentProvider/>; D: <;receiver/>;

    • 2

      Android四大组件是()。 A: Activity、BroadcastReceiver、Service、ContentProvider B: Activity、Intent、Service、ContentProvider C: Activity、BroadcastReceiver、Service、ContentResolver D: Activity、BroadcastReceiver、Service、ContentObserver

    • 3

      在清单文件中,注册广播接收者时使用的节点是( ) A: <;activity>; <;/activity>; B: <;broadcast>; <;/broadcast>; C: <;receiver>; <;/receiver>; D: <;broadcastreceiver>; <;/broadcastreceiver>;

    • 4

      当一个广播消息到达接收者时,Android调用BroadcastReceiver的()方法。 A: onReceive() B: BroadcastReceiver C: Broadcast() D: receive