Intent的七个属性
1)ComponentName(组件名称)

2)Action(动作)

3)Category(类别)

4)Data(数据),Type(MIME类型)

5)Extras(额外)

6)Flags(标记)

显式Intent
定义:通过组件名指定启动的目标组件,eg:startActivity(new Intent(A.this,B.class));
每次启动的组件只有一个;
隐式Intent
定义:不指定组件名,而指定Intent的Action,Data,或Category;
启动组件时匹配清单文件中相关组件的Intent-filter,逐一匹配出满足属性的组件,弹出多个需手动选择;




Action查询
下载了Android文档
sdk-->docs-->reference-->android--->content--->Intent.html --》Constants
网友评论