當(dāng)前位置:
首頁(yè) >
android intent action 介绍大全
發(fā)布時(shí)間:2024/4/17
49
豆豆
生活随笔
收集整理的這篇文章主要介紹了
android intent action 介绍大全
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
一些常用的Intent:
| geo:latitude,longitude | Intent.ACTION_VIEW | 打開地圖應(yīng)用程序并顯示指定的經(jīng)緯度 | |
| geo:0,0?q=street+address | Intent.ACTION_VIEW | 打開地圖應(yīng)用程序并顯示指定的地址 | |
| http://web_address | Intent.ACTION_VIEW | 打開瀏覽器程序并顯示指定的URL | |
| https://web_address | Intent.ACTION_VIEW | 打開瀏覽器程序并顯示指定的URL | |
| tel:phone_number | Intent.ACTION_CALL | 打開電話應(yīng)用程序并撥打指定的電話號(hào)碼 | |
| tel:phone_number | Intent.ACTION_DIAL | 打開電話應(yīng)用程序并撥下指定的電話號(hào)碼 | |
| voicemail: | Intent.ACTION_DIAL | 打開電話應(yīng)用程序并撥下指定語音郵箱的電話號(hào)碼 | |
| plain_text | Intent.ACTION_WEB_SEARCH | 打開瀏覽器程序并使用Google搜索引擎搜索 |
活動(dòng):
| CALL_ACTION | 撥打電話,被呼叫的聯(lián)系人在數(shù)據(jù)中指定。 | android.intent.action.CALL |
| EMERGENCY_DIAL_ACTION | 撥打緊急電話號(hào)碼。 | android.intent.action.EMERGENCY_DIAL |
| DIAL_ACTION | 撥打數(shù)據(jù)中指定的電話號(hào)碼。 | android.intent.action.DIAL |
| ANSWER_ACTION | 處理?yè)苋氲碾娫挕?/span> | android.intent.action.ANSWER |
| DELETE_ACTION | 從容器中刪除給定的數(shù)據(jù)。 | android.intent.action.DELETE |
| PICK_ACTION | 從數(shù)據(jù)中選擇一個(gè)項(xiàng)目 (item),將被選中的項(xiàng)目返回。 | android.intent.action.PICK |
| DEFAULT_ACTION | 和 VIEW_ACTION 相同,是在數(shù)據(jù)上執(zhí)行的標(biāo)準(zhǔn)動(dòng)作。 | android.intent.action.VIEW |
| LOGIN_ACTION | 獲取登錄憑證。 | android.intent.action.LOGIN |
| ALL_APPS_ACTION | 列舉所有可用的應(yīng)用。 | android.intent.action.ALL_APPS |
| CLEAR_CREDENTIALS_ACTION | 清除登陸憑證 (credential)。 | android.intent.action.CLEAR_CREDENTIALS |
| GET_CONTENT_ACTION | 讓用戶選擇數(shù)據(jù)并返回。 | android.intent.action.GET_CONTENT |
| EDIT_ACTION | 為制定的數(shù)據(jù)顯示可編輯界面。 | android.intent.action.EDIT |
| BUG_REPORT_ACTION | 顯示 activity 報(bào)告錯(cuò)誤。 | android.intent.action.BUG_REPORT |
| SETTINGS_ACTION | 顯示系統(tǒng)設(shè)置。輸入:無。 | android.intent.action.SETTINGS |
| WALLPAPER_SETTINGS_ACTION | 顯示選擇墻紙的設(shè)置界面。輸入:無。 | android.intent.action.WALLPAPER_SETTINGS |
| SENDTO_ACTION | 向 data 指定的接收者發(fā)送一個(gè)消息。 | android.intent.action.SENDTO |
| VIEW_ACTION | 向用戶顯示數(shù)據(jù)。 | android.intent.action.VIEW |
| PICK_ACTIVITY_ACTION | 選擇一個(gè) activity,返回被選擇的 activity 的類(名)。 | android.intent.action.PICK_ACTIVITY |
| RUN_ACTION | 運(yùn)行數(shù)據(jù)(指定的應(yīng)用),無論它(應(yīng)用)是什么。 | android.intent.action.RUN |
| INSERT_ACTION | 在容器中插入一個(gè)空項(xiàng) (item)。 | android.intent.action.INSERT |
| ADD_SHORTCUT_ACTION | 在系統(tǒng)中添加一個(gè)快捷方式。. | android.intent.action.ADD_SHORTCUT |
| WEB_SEARCH_ACTION | 執(zhí)行 web 搜索。 | android.intent.action.WEB_SEARCH |
| SYNC_ACTION | 執(zhí)行數(shù)據(jù)同步。 | android.intent.action.SYNC |
| MAIN_ACTION | 作為主入口點(diǎn)啟動(dòng),不需要數(shù)據(jù)。 | android.intent.action.MAI |
| LABEL_EXTRA | 大寫字母開頭的字符標(biāo)簽,和 ADD_SHORTCUT_ACTION 一起使用。 | android.intent.extra.LABEL |
| INTENT_EXTRA | 和 PICK_ACTIVITY_ACTION 一起使用時(shí),說明用戶選擇的用來顯示的 activity;和 ADD_SHORTCUT_ACTION 一起使用的時(shí)候,描述要添加的快捷方式。 | android.intent.extra.INTENT |
| TEMPLATE_EXTRA | 新記錄的初始化模板。 | android.intent.extra.TEMPLATE |
| XMPP_DISCONNECTED_ACTION | XMPP 連接已經(jīng)被斷開。 | android.intent.action.XMPP_DI |
| XMPP_CONNECTED_ACTION | XMPP 連接已經(jīng)被建立。 | android.intent.action.XMPP_CONNECTED |
| BATTERY_CHANGED_ACTION | 充電狀態(tài),或者電池的電量發(fā)生變化。 | android.intent.action.BATTERY_CHANGED |
| TIME_TICK_ACTION | 當(dāng)前時(shí)間已經(jīng)變化(正常的時(shí)間流逝)。 | android.intent.action.TIME_TICK |
| DATA_ACTIVITY_STATE_CHANGED_ACTION | 電話的數(shù)據(jù)活動(dòng)(data activity)狀態(tài)(即收發(fā)數(shù)據(jù)的狀態(tài))已經(jīng)改變。 | android.intent.action.DATA_ACTIVITY |
| DATA_CONNECTION_STATE_CHANGED_ACTION | 電話的數(shù)據(jù)連接狀態(tài)已經(jīng)改變。 | android.intent.action.DATA_STATE |
| MESSAGE_WAITING_STATE_CHANGED_ACTION | 電話的消息等待(語音郵件)狀態(tài)已經(jīng)改變。 | android.intent.action.MWI |
| SIGNAL_STRENGTH_CHANGED_ACTION | 電話的信號(hào)強(qiáng)度已經(jīng)改變。 | android.intent.action.SIG_STR |
| SERVICE_STATE_CHANGED_ACTION | 電話服務(wù)的狀態(tài)已經(jīng)改變。 | android.intent.action.SERVICE_STATE |
| PHONE_STATE_CHANGED_ACTION | 電話狀態(tài)已經(jīng)改變。 | android.intent.action.PHONE_STATE |
| PROVIDER_CHANGED_ACTION | 更新將要(真正)被安裝。 | android.intent.action.PROVIDER_CHANGED |
| FOTA_INSTALL_ACTION | 更新已經(jīng)被確認(rèn),馬上就要開始安裝。 | android.server.checkin.FOTA_INSTALL |
| FOTA_READY_ACTION | 更新已經(jīng)被下載,可以開始安裝。 | android.server.checkin.FOTA_READY |
| FOTA_RESTART_ACTION | 恢復(fù)已經(jīng)停止的更新下載。 | android.server.checkin.FOTA_RESTART |
| MEDIA_SCANNER_STARTED_ACTION | 開始掃描介質(zhì)的一個(gè)目錄。 | android.intent.action.MEDIA_SCANNER_STARTED |
| MEDIA_BAD_REMOVAL_ACTION | 擴(kuò)展介質(zhì)(擴(kuò)展卡)已經(jīng)從 SD 卡插槽拔出,但是掛載點(diǎn) (mount point) 還沒解除 (unmount)。 | android.intent.action.MEDIA_BAD_REMOVAL |
| MEDIA_MOUNTED_ACTION | 擴(kuò)展介質(zhì)被插入,而且已經(jīng)被掛載。 | android.intent.action.MEDIA_MOUNTED |
| MEDIA_REMOVED_ACTION | 擴(kuò)展介質(zhì)被移除。 | android.intent.action.MEDIA_REMOVED |
| MEDIA_UNMOUNTED_ACTION | 擴(kuò)展介質(zhì)存在,但是還沒有被掛載 (mount)。 | android.intent.action.MEDIA_UNMOUNTED |
| MEDIA_SHARED_ACTION | 擴(kuò)展介質(zhì)的掛載被解除 (unmount),因?yàn)樗呀?jīng)作為 USB 大容量存儲(chǔ)被共享。 | android.intent.action.MEDIA_SHARED |
| SCREEN_OFF_ACTION | 屏幕被關(guān)閉。 | android.intent.action.SCREEN_OFF |
| SCREEN_ON_ACTION | 屏幕已經(jīng)被打開。 | android.intent.action.SCREEN_ON |
| FOTA_CANCEL_ACTION | 取消所有被掛起的 (pending) 更新下載。 | android.server.checkin.FOTA_CANCEL |
| DATE_CHANGED_ACTION | 日期被改變。 | android.intent.action.DATE_CHANGED |
| UMS_DISCONNECTED_ACTION | 設(shè)備從 USB 大容量存儲(chǔ)模式退出。 | android.intent.action.UMS_DISCONNECTED |
| CONFIGURATION_CHANGED_ACTION | 設(shè)備的配置信息已經(jīng)改變,參見 Resources.Configuration. | android.intent.action.CONFIGURATION_CHANGED |
| UMS_CONNECTED_ACTION | 設(shè)備進(jìn)入 USB 大容量存儲(chǔ)模式。 | android.intent.action.UMS_CONNECTED |
| PACKAGE_REMOVED_ACTION | 設(shè)備上刪除了一個(gè)應(yīng)用程序包。 | android.intent.action.PACKAGE_REMOVED |
| PACKAGE_ADDED_ACTION | 設(shè)備上新安裝了一個(gè)應(yīng)用程序包。 | android.intent.action.PACKAGE_ADDED |
| NETWORK_TICKLE_RECEIVED_ACTION | 設(shè)備收到了新的網(wǎng)絡(luò) “tickle” 通知。 | android.intent.action.NETWORK_TICKLE_RECEIVED |
| TIME_CHANGED_ACTION | 時(shí)間已經(jīng)改變(重新設(shè)置)。 | android.intent.action.TIME_SET |
| TIMEZONE_CHANGED_ACTION | 時(shí)區(qū)已經(jīng)改變。 | android.intent.action.TIMEZONE_CHANGED |
| FOTA_UPDATE_ACTION | 通過 OTA 下載并安裝操作系統(tǒng)更新。 | android.server.checkin.FOTA_UPDATE |
| STATISTICS_STATE_CHANGED_ACTION | 統(tǒng)計(jì)信息服務(wù)的狀態(tài)已經(jīng)改變。 | android.intent.action.STATISTICS_STATE_CHANGED |
| WALLPAPER_CHANGED_ACTION | 系統(tǒng)的墻紙已經(jīng)改變。 | android.intent.action.WALLPAPER_CHANGED |
| PROVISIONING_CHECK_ACTION | 要求 polling of provisioning service 下載最新的設(shè)置。 | android.intent.action.PROVISIONING_CHECK |
| STATISTICS_REPORT_ACTION | 要求 receivers 報(bào)告自己的統(tǒng)計(jì)信息。 | android.intent.action.STATISTICS_REPORT |
| MEDIA_SCANNER_FINISHED_ACTION | 已經(jīng)掃描完介質(zhì)的一個(gè)目錄。 | android.intent.action.MEDIA_SCANNER_FINISHED |
| MEDIABUTTON_ACTION | 用戶按下了“Media Button”。 | android.intent.action.MEDIABUTTON |
| MEDIA_EJECT_ACTION | 用戶想要移除擴(kuò)展介質(zhì)(拔掉擴(kuò)展卡)。 | android.intent.action.MEDIA_EJECT |
| CALL_FORWARDING_STATE_CHANGED_ACTION | 語音電話的呼叫轉(zhuǎn)移狀態(tài)已經(jīng)改變。 | android.intent.action.CFF |
| BOOT_COMPLETED_ACTION | 在系統(tǒng)啟動(dòng)后,這個(gè)動(dòng)作被廣播一次(只有一次)。 | android.intent.action.BOOT_COMPLETED |
| LAUNCHER_CATEGORY | Activity 應(yīng)該被顯示在頂級(jí)的 launcher 中。 | android.intent.category.LAUNCHER |
| PREFERENCE_CATEGORY | activity是一個(gè)設(shè)置面板 (preference panel)。 | android.intent.category.PREFERENCE |
| SAMPLE_CODE_CATEGORY | To be used as an sample code example (not part of the normal user experience). | android.intent.category.SAMPLE_CODE |
| FRAMEWORK_INSTRUMENTATION_TEST_CATEGORY | To be used as code under test for framework instrumentation tests. | android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST |
| SELECTED_ALTERNATIVE_CATEGORY | 對(duì)于被用戶選中的數(shù)據(jù),activity 是它的一個(gè)可選操作。 | android.intent.category.SELECTED_ALTERNATIVE |
| BROWSABLE_CATEGORY | 能夠被瀏覽器安全使用的 activities 必須支持這個(gè)類別。 | android.intent.category.BROWSABLE |
| EMBED_CATEGORY | 能夠在上級(jí)(父)activity 中運(yùn)行。 | android.intent.category.EMBED |
| DEFAULT_CATEGORY | 如果 activity 是對(duì)數(shù)據(jù)執(zhí)行確省動(dòng)作(點(diǎn)擊, center press)的一個(gè)選項(xiàng),需要設(shè)置這個(gè)類別。 | android.intent.category.DEFAULT |
| DEVELOPMENT_PREFERENCE_CATEGORY | 說明 activity 是一個(gè)設(shè)置面板 (development preference panel). | android.intent.category.DEVELOPMENT_PREFERENCE |
| ALTERNATIVE_CATEGORY | 說明 activity 是用戶正在瀏覽的數(shù)據(jù)的一個(gè)可選操作。 | android.intent.category.ALTERNATIVE |
| UNIT_TEST_CATEGORY | 應(yīng)該被用作單元測(cè)試(通過 test harness 運(yùn)行)。 | android.intent.category.UNIT_TEST |
| GADGET_CATEGORY | 這個(gè) activity 可以被嵌入宿主 activity (activity that is hosting gadgets)。 | android.intent.category.GADGET |
| WALLPAPER_CATEGORY | 這個(gè) activity 能過為設(shè)備設(shè)置墻紙。 | android.intent.category.WALLPAPER |
| TAB_CATEGORY | 這個(gè) activity 應(yīng)該在 TabActivity 中作為一個(gè) tab 使用。 | android.intent.category.TAB |
| HOME_CATEGORY | 主屏幕 (activity),設(shè)備啟動(dòng)后顯示的第一個(gè) activity。 | android.intent.category.HOME |
| TEST_CATEGORY | 作為測(cè)試目的使用,不是正常的用戶體驗(yàn)的一部分。 | android.intent.category.TEST |
| MULTIPLE_TASK_LAUNCH | 和 NEW_TASK_LAUNCH 聯(lián)合使用,禁止將已有的任務(wù)改變?yōu)榍熬叭蝿?wù) (foreground)。 | 8 0x00000008 |
| FORWARD_RESULT_LAUNCH | 如果這個(gè)標(biāo)記被設(shè)置,而且被一個(gè)已經(jīng)存在的 activity 用來啟動(dòng)新的 activity,已有 activity 的回復(fù)目標(biāo) (reply target) 會(huì)被轉(zhuǎn)移給新的 activity。 | 16 0x00000010 |
| NEW_TASK_LAUNCH | 設(shè)置以后,activity 將成為歷史堆棧中的第一個(gè)新任務(wù)(棧頂)。 | 4 0x00000004 |
| SINGLE_TOP_LAUNCH | 設(shè)置以后,如果 activity 已經(jīng)啟動(dòng),而且位于歷史堆棧的頂端,將不再啟動(dòng)(不重新啟動(dòng)) activity。 | 2 0x00000002 |
| NO_HISTORY_LAUNCH | 設(shè)置以后,新的 activity 不會(huì)被保存在歷史堆棧中。 | 1 0x00000001 |
總結(jié)
以上是生活随笔為你收集整理的android intent action 介绍大全的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 防止UI界面被输入法遮挡(画面随输入法自
- 下一篇: android4.3 Bluetooth