Android中的category大全

來源:互聯網
上載者:User

說明 activity 是使用者正在瀏覽的資料的一個可選操作
android.intent.category.ALTERNATIVE

能夠被瀏覽器安全使用的 activities 必須支援這個類別
android.intent.category.BROWSABLE

如果 activity 是對資料執行確省動作(點擊, center press)的一個選項,需要設定這個類別
android.intent.category.DEFAULT
 
說明 activity 是一個設定面板 (development preference panel)
android.intent.category.DEVELOPMENT_PREFERENCE

能夠在上級(父)activity 中運行。
android.intent.category.EMBED

被用來作為測試儀器測試架構下的代碼
android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST

這個 activity 可以被嵌入宿主 activity (activity that is hosting gadgets)
android.intent.category.GADGET

主畫面 (activity),裝置啟動後顯示的第一個 activity
android.intent.category.HOME
 
Activity 應該被顯示在頂級的 launcher 中
android.intent.category.LAUNCHER

activity是一個設定面板 (preference panel)
android.intent.category.PREFERENCE

被用來作為一個範例程式碼樣本(不是普通使用者體驗的部分)
android.intent.category.SAMPLE_CODE
 
對於被使用者選中的資料,activity 是它的一個可選操作
android.intent.category.SELECTED_ALTERNATIVE

作為測試目的使用,不是正常的使用者體驗的一部分
android.intent.category.TEST

應該被用作單元測試(通過 test harness 運行)
android.intent.category.UNIT_TEST

這個 activity 能過為裝置設定牆紙
android.intent.category.WALLPAPE

這個 activity 應該在 TabActivity 中作為一個 tab 使用
android.intent.category.TAB

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.