日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

android intent action 介绍大全

發(fā)布時間:2024/4/17 编程问答 44 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android intent action 介绍大全 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

一些常用的Intent:


UriAction功能備注
geo:latitude,longitudeIntent.ACTION_VIEW打開地圖應(yīng)用程序并顯示指定的經(jīng)緯度
geo:0,0?q=street+addressIntent.ACTION_VIEW打開地圖應(yīng)用程序并顯示指定的地址
http://web_addressIntent.ACTION_VIEW打開瀏覽器程序并顯示指定的URL
https://web_addressIntent.ACTION_VIEW打開瀏覽器程序并顯示指定的URL
tel:phone_numberIntent.ACTION_CALL打開電話應(yīng)用程序并撥打指定的電話號碼
tel:phone_numberIntent.ACTION_DIAL打開電話應(yīng)用程序并撥下指定的電話號碼
voicemail:Intent.ACTION_DIAL打開電話應(yīng)用程序并撥下指定語音郵箱的電話號碼
plain_textIntent.ACTION_WEB_SEARCH打開瀏覽器程序并使用Google搜索引擎搜索

活動

Intent說明Action
CALL_ACTION撥打電話,被呼叫的聯(lián)系人在數(shù)據(jù)中指定。android.intent.action.CALL
EMERGENCY_DIAL_ACTION撥打緊急電話號碼。android.intent.action.EMERGENCY_DIAL
DIAL_ACTION撥打數(shù)據(jù)中指定的電話號碼。android.intent.action.DIAL
ANSWER_ACTION處理撥入的電話。android.intent.action.ANSWER
DELETE_ACTION從容器中刪除給定的數(shù)據(jù)。android.intent.action.DELETE
PICK_ACTION從數(shù)據(jù)中選擇一個項目 (item),將被選中的項目返回。android.intent.action.PICK
DEFAULT_ACTION和 VIEW_ACTION 相同,是在數(shù)據(jù)上執(zhí)行的標準動作。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 報告錯誤。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ā)送一個消息。android.intent.action.SENDTO
VIEW_ACTION向用戶顯示數(shù)據(jù)。android.intent.action.VIEW
PICK_ACTIVITY_ACTION選擇一個 activity,返回被選擇的 activity 的類(名)。android.intent.action.PICK_ACTIVITY
RUN_ACTION運行數(shù)據(jù)(指定的應(yīng)用),無論它(應(yīng)用)是什么。android.intent.action.RUN
INSERT_ACTION在容器中插入一個空項 (item)。android.intent.action.INSERT
ADD_SHORTCUT_ACTION在系統(tǒng)中添加一個快捷方式。.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作為主入口點啟動,不需要數(shù)據(jù)。android.intent.action.MAI

Intent說明Action
LABEL_EXTRA大寫字母開頭的字符標簽,和 ADD_SHORTCUT_ACTION 一起使用。android.intent.extra.LABEL
INTENT_EXTRA和 PICK_ACTIVITY_ACTION 一起使用時,說明用戶選擇的用來顯示的 activity;和 ADD_SHORTCUT_ACTION 一起使用的時候,描述要添加的快捷方式。android.intent.extra.INTENT
TEMPLATE_EXTRA新記錄的初始化模板。android.intent.extra.TEMPLATE

Intent說明Action
XMPP_DISCONNECTED_ACTIONXMPP 連接已經(jīng)被斷開。android.intent.action.XMPP_DI
XMPP_CONNECTED_ACTIONXMPP 連接已經(jīng)被建立。android.intent.action.XMPP_CONNECTED
BATTERY_CHANGED_ACTION充電狀態(tài),或者電池的電量發(fā)生變化。android.intent.action.BATTERY_CHANGED
TIME_TICK_ACTION當前時間已經(jīng)變化(正常的時間流逝)。android.intent.action.TIME_TICK
DATA_ACTIVITY_STATE_CHANGED_ACTION電話的數(shù)據(jù)活動(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電話的信號強度已經(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)被確認,馬上就要開始安裝。android.server.checkin.FOTA_INSTALL
FOTA_READY_ACTION更新已經(jīng)被下載,可以開始安裝。android.server.checkin.FOTA_READY
FOTA_RESTART_ACTION恢復已經(jīng)停止的更新下載。android.server.checkin.FOTA_RESTART
MEDIA_SCANNER_STARTED_ACTION開始掃描介質(zhì)的一個目錄。android.intent.action.MEDIA_SCANNER_STARTED
MEDIA_BAD_REMOVAL_ACTION擴展介質(zhì)(擴展卡)已經(jīng)從 SD 卡插槽拔出,但是掛載點 (mount point) 還沒解除 (unmount)。android.intent.action.MEDIA_BAD_REMOVAL
MEDIA_MOUNTED_ACTION擴展介質(zhì)被插入,而且已經(jīng)被掛載。android.intent.action.MEDIA_MOUNTED
MEDIA_REMOVED_ACTION擴展介質(zhì)被移除。android.intent.action.MEDIA_REMOVED
MEDIA_UNMOUNTED_ACTION擴展介質(zhì)存在,但是還沒有被掛載 (mount)。android.intent.action.MEDIA_UNMOUNTED
MEDIA_SHARED_ACTION擴展介質(zhì)的掛載被解除 (unmount),因為它已經(jīng)作為 USB 大容量存儲被共享。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 大容量存儲模式退出。android.intent.action.UMS_DISCONNECTED
CONFIGURATION_CHANGED_ACTION設(shè)備的配置信息已經(jīng)改變,參見 Resources.Configuration.android.intent.action.CONFIGURATION_CHANGED
UMS_CONNECTED_ACTION設(shè)備進入 USB 大容量存儲模式。android.intent.action.UMS_CONNECTED
PACKAGE_REMOVED_ACTION設(shè)備上刪除了一個應(yīng)用程序包。android.intent.action.PACKAGE_REMOVED
PACKAGE_ADDED_ACTION設(shè)備上新安裝了一個應(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時間已經(jīng)改變(重新設(shè)置)。android.intent.action.TIME_SET
TIMEZONE_CHANGED_ACTION時區(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)計信息服務(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 報告自己的統(tǒng)計信息。android.intent.action.STATISTICS_REPORT
MEDIA_SCANNER_FINISHED_ACTION已經(jīng)掃描完介質(zhì)的一個目錄。android.intent.action.MEDIA_SCANNER_FINISHED
MEDIABUTTON_ACTION用戶按下了“Media Button”。android.intent.action.MEDIABUTTON
MEDIA_EJECT_ACTION用戶想要移除擴展介質(zhì)(拔掉擴展卡)。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)啟動后,這個動作被廣播一次(只有一次)。android.intent.action.BOOT_COMPLETED

Intent說明Action
LAUNCHER_CATEGORYActivity 應(yīng)該被顯示在頂級的 launcher 中。android.intent.category.LAUNCHER
PREFERENCE_CATEGORYactivity是一個設(shè)置面板 (preference panel)。android.intent.category.PREFERENCE
SAMPLE_CODE_CATEGORYTo be used as an sample code example (not part of the normal user experience).android.intent.category.SAMPLE_CODE
FRAMEWORK_INSTRUMENTATION_TEST_CATEGORYTo be used as code under test for framework instrumentation tests.android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST
SELECTED_ALTERNATIVE_CATEGORY對于被用戶選中的數(shù)據(jù),activity 是它的一個可選操作。android.intent.category.SELECTED_ALTERNATIVE
BROWSABLE_CATEGORY能夠被瀏覽器安全使用的 activities 必須支持這個類別。android.intent.category.BROWSABLE
EMBED_CATEGORY能夠在上級(父)activity 中運行。android.intent.category.EMBED
DEFAULT_CATEGORY如果 activity 是對數(shù)據(jù)執(zhí)行確省動作(點擊, center press)的一個選項,需要設(shè)置這個類別。android.intent.category.DEFAULT
DEVELOPMENT_PREFERENCE_CATEGORY說明 activity 是一個設(shè)置面板 (development preference panel).android.intent.category.DEVELOPMENT_PREFERENCE
ALTERNATIVE_CATEGORY說明 activity 是用戶正在瀏覽的數(shù)據(jù)的一個可選操作。android.intent.category.ALTERNATIVE
UNIT_TEST_CATEGORY應(yīng)該被用作單元測試(通過 test harness 運行)。android.intent.category.UNIT_TEST
GADGET_CATEGORY這個 activity 可以被嵌入宿主 activity (activity that is hosting gadgets)。android.intent.category.GADGET
WALLPAPER_CATEGORY這個 activity 能過為設(shè)備設(shè)置墻紙。android.intent.category.WALLPAPER
TAB_CATEGORY這個 activity 應(yīng)該在 TabActivity 中作為一個 tab 使用。android.intent.category.TAB
HOME_CATEGORY主屏幕 (activity),設(shè)備啟動后顯示的第一個 activity。android.intent.category.HOME
TEST_CATEGORY作為測試目的使用,不是正常的用戶體驗的一部分。android.intent.category.TEST

標志描述
MULTIPLE_TASK_LAUNCH和 NEW_TASK_LAUNCH 聯(lián)合使用,禁止將已有的任務(wù)改變?yōu)榍熬叭蝿?wù) (foreground)。8 0x00000008
FORWARD_RESULT_LAUNCH如果這個標記被設(shè)置,而且被一個已經(jīng)存在的 activity 用來啟動新的 activity,已有 activity 的回復目標 (reply target) 會被轉(zhuǎn)移給新的 activity。16 0x00000010
NEW_TASK_LAUNCH設(shè)置以后,activity 將成為歷史堆棧中的第一個新任務(wù)(棧頂)。4 0x00000004
SINGLE_TOP_LAUNCH設(shè)置以后,如果 activity 已經(jīng)啟動,而且位于歷史堆棧的頂端,將不再啟動(不重新啟動) activity。2 0x00000002
NO_HISTORY_LAUNCH設(shè)置以后,新的 activity 不會被保存在歷史堆棧中。1 0x00000001

總結(jié)

以上是生活随笔為你收集整理的android intent action 介绍大全的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。