阅读更多

One area where Android shines is the flexibility it provides in communicating between components, and

sharing data between them. 利用的就是Intent- and IntentFilter-based events.

 

Intent: is a description of an action you want to happen.

IntentFilter: is a means for a component to declare it's capable of handling a specific Intent.

 

Intents themselves don't do any work; rather, they describe something that needs to be done.

 

If a component wants to perform an action, it declares that intention with an Intent and hands it off to the

system. The system then decodes the Intent and decides which other component, Activity, Service, or

BroadcastReceiver, can handle the job.

 

Also, if an Activity, BroadcastReceiver, or Service wants to offer some action to be available to other

components, it declares an IntentFilter.

 

未完。。。。

 

 

更多相关文章

  1. android footer view
  2. android:ListView下拉刷新上拉加载更多(PullToRefresh框架抽取)
  3. Android利用ViewFlipper实现屏幕切换动画效果(上)
  4. Android(安卓)Studio(AS)-->drawable与mipmap (官网解释)
  5. 一起学android之利用ColorMatrix进行图片的各种特效处理(32)
  6. Android(安卓)Gradle权威指南
  7. 利用AccessibilityService实现“微信红包”插件
  8. android 获取当前时间精确到毫秒的两种方法
  9. Android(安卓)Studio利用BuildConfig获取版本名和版本号

随机推荐

  1. 【前端词典】几个有益的 CSS 小知识
  2. 这个jQuery相册很特别
  3. 一组强大的CSS3 Material 按钮
  4. HTML5粒子螺旋线条3D动画
  5. 为NetBeans添加Andriod平台
  6. 【前端词典】有趣的大厂算法面试题
  7. 【前端词典】4 个实用有趣的 JS 特性
  8. 3组24个CSS3分享图标,可旋转和悬停
  9. Android振动系统学习
  10. 【前端词典】CDN 带来这些性能优化(进阶必