zoukankan      html  css  js  c++  java
  • Intent Receiver

    使用Intent Receiver让自己的应用对一个外部事件做出响应,比如当电话呼入时,或者当数据网络可用时,或者时间到晚上了。Intent Receiver不能显示用户界面,它只能通过Notification Manager通知用户这些有趣的事情发生了。Intent Receiver既可以在AndroidManifest.xml中注册,也可以在代码中使用Context.registerReceiver()进行注册。但是当这些有趣的事情发生时,应用不必对请求调用Intent Receiver,系统会在需要的时候启动应用,并在必要的情况下触发Intent Receiver。各种应用还可以通过使用Context.broadcastIntent()将它们自己的Intent广播给其他应用程序。

  • 相关阅读:
    bzoj1648
    bzoj3404
    bzoj1650
    bzoj1625
    bzoj1606
    bzoj1464
    bzoj1572
    bzoj1617
    bzoj1092
    bzoj1091
  • 原文地址:https://www.cnblogs.com/jackiehe/p/4330523.html
Copyright © 2011-2022 走看看