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