天天看點

Android學習筆記——Intents 和 Intent Filters(二)

 本人郵箱:[email protected],歡迎交流讨論。

知識點:

           繼續昨天的intents 和 intent filters的學習

  組成一個intent(building an intent):

          intent 對象攜帶資訊(例如明确的元件名或應該接收intent的元件種類(intent category)),android系統使用這些

     資訊決定開啟哪個元件。還攜帶了接收的元件使用的資訊,為了完全的執行功能。

          intent包含的基本資訊有以下幾種:

          1.元件名

Android學習筆記——Intents 和 Intent Filters(二)
Android學習筆記——Intents 和 Intent Filters(二)

         2.功能

Android學習筆記——Intents 和 Intent Filters(二)
Android學習筆記——Intents 和 Intent Filters(二)

        3.資料

Android學習筆記——Intents 和 Intent Filters(二)
Android學習筆記——Intents 和 Intent Filters(二)

       4.種類

          元件名、功能、資料、種類(component name,action,date,category)代表了一個intent最典型的特點,

     通過讀取這些屬性,android系統能決定開啟哪個元件。

     5.附加部分

      6.标志

     如果喜歡,請點推薦。

     to be continued.....

原文位址:http://www.cnblogs.com/johntsai/p/3993488.html

繼續閱讀