1.action屬性:在AndroidManifest中至少定義一個(gè),不然不能隱式啟動(dòng)。intent中如果設(shè)置了action,那至少要匹配intent-filter中配置的可以多個(gè)的action中至少一個(gè)。intent中設(shè)置action值只能一個(gè),而intent-filter可以配置多個(gè),而且值可以重復(fù),如果有兩個(gè)activity配置相同的action值,而其他條件都一樣,則會(huì)彈出選擇框
2.category屬性:至少要有DEFAULT,不然不能隱式啟動(dòng),因?yàn)槟J(rèn)隱式啟動(dòng),會(huì)默認(rèn)添加。category可以添加多個(gè),但在intent中添加的話,所添加的都要已經(jīng)在intent-filter中配置了
3.data屬性:如果intent-iilter中定義了至少一個(gè)data屬性,那intent要全部匹配,才能啟動(dòng)。