博客
关于我
理解PendingIntent
阅读量:345 次
发布时间:2019-03-03

本文共 1369 字,大约阅读时间需要 4 分钟。

Android??PendingIntent???????????????????????????????Activity Manager Service?AMS????????????????????????PendingIntent???????????????

PendingIntent?????

PendingIntent????????????????????????Intent?????binder???????AMS????PendingIntent????????????

??PendingIntent

???????????

  • getActivity()????????
  • getBroadcast()????????
  • getService()????????
  • getActivities()??????????

??????????PendingIntent??????????IIntentSender????????????????PendingIntent?mTarget??????????????????????

AMS??PendingIntentRecord

PendingIntentRecord?????????

  • controller???PendingIntent?????
  • key??????PendingIntent????????????????????????????????????
  • uid???????
  • ref?????PendingIntentRecord???

??PendingIntent?????

???getActivity()???????????getIntentSender()???????PendingIntentRecord????AMS????????getIntentSender()?????????Key???????????PendingIntentRecord???????????????????????????

??PendingIntent

????send()????PendingIntent?????sendInner()??????????????????????PendingIntent?????????

  • ?????ATM???????
  • ?????sendBroadcast?
  • ?????startService?

sendInner()????????????????????????????????

flags?????

  • FLAG_NO_CREATE?????PendingIntent?
  • FLAG_CANCEL_CURRENT?????PendingIntent?
  • FLAG_UPDATE_CURRENT?????PendingIntent?
  • FLAG_ONE_SHOT?????????

?????????PendingIntent???????????????????

????

  • ??????????????????
  • ????????????
  • ?????????????????

??

PendingIntent??AMS?????????????????????????????????????????????????

转载地址:http://fqom.baihongyu.com/

你可能感兴趣的文章
python3+requests+unittest实战系列【二】
查看>>
Python3+Requests+Unittest实战系列【二】
查看>>
python3----ASCII
查看>>
Python3-selenium自动化测试框架,结合HTMLTestRunner测试报告!
查看>>
Python3-如何自我更新作为服务运行的应用程序
查看>>
Python3.1-网格模拟概念性问题
查看>>
Python3.12 解决conda环境libstdc++版本过低问题
查看>>
python3.2批量查询IP地址区域
查看>>
Python3.5中协程和未来/任务之间的区别?
查看>>
python3.5实现socket通讯(TCP)
查看>>
python3.6 ubuntu部署nginx、 uwsgi、 django
查看>>
Python3.6.3中,functools似乎不能用
查看>>
python3.6.5+cuda9+cudnn7.1+win10+tensorflow-gpu1.9.0下载配置
查看>>
python3.6使用pickle序列化class
查看>>
python3.6入门到高阶(全栈) day027 网络通信协议 osi七层模型
查看>>
Python3.6属性错误:模块‘;异步没有属性‘;运行‘;
查看>>
python3.6版本中的python-weka-wrapper安装失败,错误代码为%1
查看>>
Python3.7安装cv2踩过的坑
查看>>
python写txt文件
查看>>
python关于sorted排序函数详细解析 附实战代码(全)
查看>>