Android中Acition和Category常量表

來源:互聯網
上載者:User

Action

Action常量 對應字串 簡單說明
ACTION_MAIN android.intent.action.MAIN 應用程式入口
ACTION_VIEW android.intent.action.VIEW 顯示指定資料
ACTION_ATTACH_DATA android.intent.action.ATTACH_DATA 指定某塊資料將被附加到其它地方
ACTION_EDIT android.intent.action.EDIT 編輯指定資料
ACTION_PICK android.intent.action.PICK 從列表中選擇某項並返回所選的資料
ACTION_CHOOSER android.intent.action.CHOOSER 顯示一個Activity選取器
ACTION_GET_CONTENT android.intent.action.GET_CONTENT 讓使用者選擇資料,並返回所選資料
ACTION_DIAL android.intent.action.DIAL 顯示撥號面板
ACTION_CALL android.intent.action.CALL 直接向指定使用者打電話
ACTION_SEND android.intent.action.SEND 向其他人發送資料
ACTION_SENDTO android.intent.action.SENDTO 向其他人發送訊息
ACTION_ANSWER android.intent.action.ANSWER 應答電話
ACTION_INSERT android.intent.action.INSERT 插入資料
ACTION_DELETE android.intent.action.DELETE 刪除資料
ACTION_RUN android.intent.action.RUN 運行維護
ACTION_SYNC android.intent.action.SYNC 執行資料同步
ACTION_PICK_ACTIVITY android.intent.action.PICK_ACTIVITY 用於選擇Activity
ACTION_SEARCH android.intent.action.SEARCH 執行搜尋
ACTION_WEB_SEARCH android.intent.action.WEB_SEARCH 執行Web搜尋
ACTION_FACTORY_TEST android.intent.action.FACTORY_TEST 工廠測試的進入點


Category

Category 常量對應字串 簡單說明
CATEGORY_DEFAULT android.intent.category.DEFAULT 預設的Category
CATEGORY_BROWSABLE android.intent.category.BROWSABLE 指定該Activity能被瀏覽器安全調用
CATEGORY_TAB android.intent.category.TAB 指定Activity作為TabActivity的Tab頁
CATEGORY_LAUNCHER android.intent.category.LAUNCHER Activity顯示頂級程式列表中
CATEGORY_INFO android.intent.category.INFO 用於提供包資訊
CATEGORY_HOME android.intent.category.HOME 設定該Activity隨系統啟動而運行
CATEGORY_PREFERENCE android.intent.category.PREFERENCE 該Activity是參數面板
CATEGORY_TEST android.intent.category.TEST 該Activity是一個測試
CATEGORY_CAR_DOCK android.intent.category.CAR_DOCK 指定手機被插入汽車底座(硬體)時運行該Activity
CATEGORY_DESK_DOCK android.intent.category.DESK_DOCK 指定手機被插入案頭底座(硬體)時運行該Activity
CATEGORY_CAR_MODE android.intent.category.CAR_MODE 設定該Activity可在車載環境下使用
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.