android系统action大全
String ALL_APPS_ACTION 動作:列舉所有可用的應用。
輸入:無。 “android.intent.action.ALL_APPS”
String ALTERNATIVE_CATEGORY 類別:說明 activity 是用戶正在瀏覽的數(shù)據(jù)的一個可選操作。 “android.intent.category.ALTERNATIVE”
String ANSWER_ACTION 動作:處理撥入的電話。 “android.intent.action.ANSWER”
String BATTERY_CHANGED_ACTION 廣播:充電狀態(tài),或者電池的電量發(fā)生變化。 “android.intent.action.BATTERY_CHANGED”
String BOOT_COMPLETED_ACTION 廣播:在系統(tǒng)啟動后。 ???????這個動作被廣播一次(只有一次)。 “android.intent.action.BOOT_COMPLETED”
String BROWSABLE_CATEGORY 類別:能夠被瀏覽器安全使用的 activities 必須支持這個類別。 “android.intent.category.BROWSABLE”
String BUG_REPORT_ACTION 動作:顯示 activity 報告錯誤。 “android.intent.action.BUG_REPORT”
String CALL_ACTION 動作:撥打電話。 ???????被呼叫的聯(lián)系人在數(shù)據(jù)中指定。 “android.intent.action.CALL”
String CALL_FORWARDING_STATE_CHANGED_ACTION 廣播:語音電話的呼叫轉(zhuǎn)移狀態(tài)已經(jīng)改變。 “android.intent.action.CFF”
String CLEAR_CREDENTIALS_ACTION 動作:清除登陸憑證 (credential)。 “android.intent.action.CLEAR_CREDENTIALS”
String CONFIGURATION_CHANGED_ACTION 廣播:設(shè)備的配置信息已經(jīng)改變,參見 Resources.Configuration. “android.intent.action.CONFIGURATION_CHANGED”
Creator CREATOR 無 無
String DATA_ACTIVITY_STATE_CHANGED_ACTION 廣播:電話的數(shù)據(jù)活動(data activity)狀態(tài)(即收發(fā)數(shù)據(jù)的狀態(tài))已經(jīng)改變。 “android.intent.action.DATA_ACTIVITY”
String DATA_CONNECTION_STATE_CHANGED_ACTION 廣播:電話的數(shù)據(jù)連接狀態(tài)已經(jīng)改變。 “android.intent.action.DATA_STATE”
String DATE_CHANGED_ACTION 廣播:日期被改變。 “android.intent.action.DATE_CHANGED”
String DEFAULT_ACTION 動作:和 VIEW_ACTION 相同,是在數(shù)據(jù)上執(zhí)行的標準動作。 “android.intent.action.VIEW”
String DEFAULT_CATEGORY 類別:如果 activity 是對數(shù)據(jù)執(zhí)行確省動作(點擊, center press)的一個選項,需要設(shè)置這個類別。 “android.intent.category.DEFAULT”
String DELETE_ACTION 動作:從容器中刪除給定的數(shù)據(jù)。 “android.intent.action.DELETE”
String DEVELOPMENT_PREFERENCE_CATEGORY 類別:說明 activity 是一個設(shè)置面板 (development preference panel). “android.intent.category.DEVELOPMENT_PREFERENCE”
String DIAL_ACTION 動作:撥打數(shù)據(jù)中指定的電話號碼。 “android.intent.action.DIAL”
String EDIT_ACTION 動作:為制定的數(shù)據(jù)顯示可編輯界面。 “android.intent.action.EDIT”
String EMBED_CATEGORY 類別:能夠在上級(父)activity 中運行。 “android.intent.category.EMBED”
String EMERGENCY_DIAL_ACTION 動作:撥打緊急電話號碼。 “android.intent.action.EMERGENCY_DIAL”
int FORWARD_RESULT_LAUNCH 啟動標記:如果這個標記被設(shè)置。 ???????而且被一個已經(jīng)存在的 activity 用來啟動新的 activity,已有 activity 的回復目標 (reply target) 會被轉(zhuǎn)移給新的 activity。 16 0×00000010
String FOTA_CANCEL_ACTION 廣播:取消所有被掛起的 (pending) 更新下載。 “android.server.checkin.FOTA_CANCEL”
String FOTA_INSTALL_ACTION 廣播:更新已經(jīng)被確認,馬上就要開始安裝。 “android.server.checkin.FOTA_INSTALL”
String FOTA_READY_ACTION 廣播:更新已經(jīng)被下載。 ???????可以開始安裝。 “android.server.checkin.FOTA_READY”
String FOTA_RESTART_ACTION 廣播:恢復已經(jīng)停止的更新下載。 “android.server.checkin.FOTA_RESTART”
String FOTA_UPDATE_ACTION 廣播:通過 OTA 下載并安裝操作系統(tǒng)更新。 “android.server.checkin.FOTA_UPDATE”
String FRAMEWORK_INSTRUMENTATION_TEST_CATEGORY 類別:To be used as code under test for framework instrumentation tests. “android.intent.category.FRAMEWORK_INSTRUMENTATION _TEST”
String GADGET_CATEGORY 類別:這個 activity 可以被嵌入宿主 activity (activity that is hosting gadgets)。 “android.intent.category.GADGET”
String GET_CONTENT_ACTION 動作:讓用戶選擇數(shù)據(jù)并返回。 “android.intent.action.GET_CONTENT”
String HOME_CATEGORY 類別:主屏幕 (activity)。 ???????設(shè)備啟動后顯示的第一個 activity。 “android.intent.category.HOME”
String INSERT_ACTION 動作:在容器中插入一個空項 (item)。 “android.intent.action.INSERT”
String INTENT_EXTRA 附加數(shù)據(jù):和 PICK_ACTIVITY_ACTION 一起使用時,說明用戶選擇的用來顯示的 activity;和 ADD_SHORTCUT_ACTION 一起使用的時候,描述要添加的快捷方式。 “android.intent.extra.INTENT”
String LABEL_EXTRA 附加數(shù)據(jù):大寫字母開頭的字符標簽,和 ADD_SHORTCUT_ACTION 一起使用。 “android.intent.extra.LABEL”
String LAUNCHER_CATEGORY 類別:Activity 應該被顯示在頂級的 launcher 中。 “android.intent.category.LAUNCHER”
String LOGIN_ACTION 動作:獲取登錄憑證。 “android.intent.action.LOGIN”
String MAIN_ACTION 動作:作為主入口點啟動,不需要數(shù)據(jù)。 “android.intent.action.MAIN”
String MEDIABUTTON_ACTION 廣播:用戶按下了“Media Button”。 “android.intent.action.MEDIABUTTON”
String MEDIA_BAD_REMOVAL_ACTION 廣播:擴展介質(zhì)(擴展卡)已經(jīng)從 SD 卡插槽拔出,但是掛載點 (mount point) 還沒解除 (unmount)。 “android.intent.action.MEDIA_BAD_REMOVAL”
String MEDIA_EJECT_ACTION 廣播:用戶想要移除擴展介質(zhì)(拔掉擴展卡)。 “android.intent.action.MEDIA_EJECT”
String MEDIA_MOUNTED_ACTION 廣播:擴展介質(zhì)被插入,而且已經(jīng)被掛載。 “android.intent.action.MEDIA_MOUNTED”
String MEDIA_REMOVED_ACTION 廣播:擴展介質(zhì)被移除。 “android.intent.action.MEDIA_REMOVED”
String MEDIA_SCANNER_FINISHED_ACTION 廣播:已經(jīng)掃描完介質(zhì)的一個目錄。 “android.intent.action.MEDIA_SCANNER_FINISHED”
String MEDIA_SCANNER_STARTED_ACTION 廣播:開始掃描介質(zhì)的一個目錄。 “android.intent.action.MEDIA_SCANNER_STARTED”
String MEDIA_SHARED_ACTION 廣播:擴展介質(zhì)的掛載被解除 (unmount)。 ???????因為它已經(jīng)作為 USB 大容量存儲被共享。 “android.intent.action.MEDIA_SHARED”
String MEDIA_UNMOUNTED_ACTION 廣播:擴展介質(zhì)存在,但是還沒有被掛載 (mount)。 “android.intent.action.MEDIA_UNMOUNTED”
String MESSAGE_WAITING_STATE_CHANGED_ACTION 廣播:電話的消息等待(語音郵件)狀態(tài)已經(jīng)改變。 “android.intent.action.MWI”
int MULTIPLE_TASK_LAUNCH 啟動標記:和 NEW_TASK_LAUNCH 聯(lián)合使用。 ???????禁止將已有的任務改變?yōu)榍熬叭蝿?(foreground)。 8 0×00000008
String NETWORK_TICKLE_RECEIVED_ACTION 廣播:設(shè)備收到了新的網(wǎng)絡 “tickle” 通知。 “android.intent.action.NETWORK_TICKLE_RECEIVED”
int NEW_TASK_LAUNCH 啟動標記:設(shè)置以后,activity 將成為歷史堆棧中的第一個新任務(棧頂)。 4 0×00000004
int NO_HISTORY_LAUNCH 啟動標記:設(shè)置以后,新的 activity 不會被保存在歷史堆棧中。 1 0×00000001
String PACKAGE_ADDED_ACTION 廣播:設(shè)備上新安裝了一個應用程序包。 “android.intent.action.PACKAGE_ADDED”
String PACKAGE_REMOVED_ACTION 廣播:設(shè)備上刪除了一個應用程序包。 “android.intent.action.PACKAGE_REMOVED”
String PHONE_STATE_CHANGED_ACTION 廣播:電話狀態(tài)已經(jīng)改變。 “android.intent.action.PHONE_STATE”
String PICK_ACTION 動作:從數(shù)據(jù)中選擇一個項目 (item),將被選中的項目返回。 “android.intent.action.PICK”
String PICK_ACTIVITY_ACTION 動作:選擇一個 activity,返回被選擇的 activity 的類(名)。 “android.intent.action.PICK_ACTIVITY”
String PREFERENCE_CATEGORY 類別:activity是一個設(shè)置面板 (preference panel)。 “android.intent.category.PREFERENCE”
String PROVIDER_CHANGED_ACTION 廣播:更新將要(真正)被安裝。 “android.intent.action.PROVIDER_CHANGED”
String PROVISIONING_CHECK_ACTION 廣播:要求 polling of provisioning service 下載最新的設(shè)置。 “android.intent.action.PROVISIONING_CHECK”
String RUN_ACTION 動作:運行數(shù)據(jù)(指定的應用),無論它(應用)是什么。 “android.intent.action.RUN”
String SAMPLE_CODE_CATEGORY 類別:To be used as an sample code example (not part of the normal user experience). “android.intent.category.SAMPLE_CODE”
String SCREEN_OFF_ACTION 廣播:屏幕被關(guān)閉。 “android.intent.action.SCREEN_OFF”
String SCREEN_ON_ACTION 廣播:屏幕已經(jīng)被打開。 “android.intent.action.SCREEN_ON”
String SELECTED_ALTERNATIVE_CATEGORY 類別:對于被用戶選中的數(shù)據(jù)。 ???????activity 是它的一個可選操作。 “android.intent.category.SELECTED_ALTERNATIVE”
String SENDTO_ACTION 動作:向 data 指定的接收者發(fā)送一個消息。 “android.intent.action.SENDTO”
String SERVICE_STATE_CHANGED_ACTION 廣播:電話服務的狀態(tài)已經(jīng)改變。 “android.intent.action.SERVICE_STATE”
String SETTINGS_ACTION 動作:顯示系統(tǒng)設(shè)置。輸入:無。 “android.intent.action.SETTINGS”
String SIGNAL_STRENGTH_CHANGED_ACTION 廣播:電話的信號強度已經(jīng)改變。 “android.intent.action.SIG_STR”
int SINGLE_TOP_LAUNCH 啟動標記:設(shè)置以后,如果 activity 已經(jīng)啟動。 ???????而且位于歷史堆棧的頂端,將不再啟動(不重新啟動) activity。 2 0×00000002
String STATISTICS_REPORT_ACTION 廣播:要求 receivers 報告自己的統(tǒng)計信息。 “android.intent.action.STATISTICS_REPORT”
String STATISTICS_STATE_CHANGED_ACTION 廣播:統(tǒng)計信息服務的狀態(tài)已經(jīng)改變。 “android.intent.action.STATISTICS_STATE_CHANGED”
String SYNC_ACTION 動作:執(zhí)行數(shù)據(jù)同步。 “android.intent.action.SYNC”
String TAB_CATEGORY 類別:這個 activity 應該在 TabActivity 中作為一個 tab 使用。 “android.intent.category.TAB”
String TEMPLATE_EXTRA 附加數(shù)據(jù):新記錄的初始化模板。 “android.intent.extra.TEMPLATE”
String TEST_CATEGORY 類別:作為測試目的使用,不是正常的用戶體驗的一部分。 “android.intent.category.TEST”
String TIMEZONE_CHANGED_ACTION 廣播:時區(qū)已經(jīng)改變。 “android.intent.action.TIMEZONE_CHANGED”
String TIME_CHANGED_ACTION 廣播:時間已經(jīng)改變(重新設(shè)置)。 “android.intent.action.TIME_SET”
String TIME_TICK_ACTION 廣播:當前時間已經(jīng)變化(正常的時間流逝)。 “android.intent.action.TIME_TICK”
String UMS_CONNECTED_ACTION 廣播:設(shè)備進入 USB 大容量存儲模式。 “android.intent.action.UMS_CONNECTED”
String UMS_DISCONNECTED_ACTION 廣播:設(shè)備從 USB 大容量存儲模式退出。 “android.intent.action.UMS_DISCONNECTED”
String UNIT_TEST_CATEGORY 類別:應該被用作單元測試(通過 test harness 運行)。 “android.intent.category.UNIT_TEST”
String VIEW_ACTION 動作:向用戶顯示數(shù)據(jù)。 “android.intent.action.VIEW”
String WALLPAPER_CATEGORY 類別:這個 activity 能過為設(shè)備設(shè)置墻紙。 “android.intent.category.WALLPAPER”
String WALLPAPER_CHANGED_ACTION 廣播:系統(tǒng)的墻紙已經(jīng)改變。 “android.intent.action.WALLPAPER_CHANGED”
String WALLPAPER_SETTINGS_ACTION 動作:顯示選擇墻紙的設(shè)置界面。輸入:無。 “android.intent.action.WALLPAPER_SETTINGS”
String WEB_SEARCH_ACTION 動作:執(zhí)行 web 搜索。 “android.intent.action.WEB_SEARCH”
String XMPP_CONNECTED_ACTION 廣播:XMPP 連接已經(jīng)被建立。 “android.intent.action.XMPP_CONNECTED”
String XMPP_DISCONNECTED_ACTION 廣播:XMPP 連接已經(jīng)被斷開。 “android.intent.action.XMPP_DI
?
=============================================================================
Activity總是要來回跳轉(zhuǎn)的,發(fā)現(xiàn)積累個ACTION列表是必要的... 1. 電話 (1) 拔打一個號碼,號碼為傳入?yún)?shù)
| TelephonyManager tm?=?(TelephonyManager)?getSystemService(Context.TELEPHONY_SERVICE); if?(tm.getCallState()?==?TelephonyManager.CALL_STATE_IDLE)?{ //其實,這個可以不要的,只是判斷一下當前phone的狀態(tài),如果為IDLE,才允許呼叫~ ?????Intent callIntent?=?new?Intent(Intent.ACTION_CALL_PRIVILEGED,Uri.fromParts("tel",?mNumber,?null)); ?????startActivity(callIntent); } |
| Intent SMSIntent?=?new?Intent(Intent.ACTION_SENDTO, ????????????????????????Uri.fromParts(Constants.SCHEME_SMSTO,?Number,?null)); startActivity(SMSIntent); |
| Intent sendIntent?=?new?Intent(Intent.ACTION_SEND); ????????????????sendIntent.setType("text/plain"); sendIntent.putExtra("sms_body",?"sms body"); |
3.
附:2.2源碼中的ACTION定義 androidsrc>?grep ACTION_ frameworks/base/core/java/android/content/Intent.java?|?grep?String
| ????public?static?final?String?ACTION_MAIN?=?"android.intent.action.MAIN"; ????public?static?final?String?ACTION_VIEW?=?"android.intent.action.VIEW"; ????public?static?final?String?ACTION_DEFAULT?=?ACTION_VIEW; ????public?static?final?String?ACTION_ATTACH_DATA?=?"android.intent.action.ATTACH_DATA"; ????public?static?final?String?ACTION_EDIT?=?"android.intent.action.EDIT"; ????public?static?final?String?ACTION_INSERT_OR_EDIT?=?"android.intent.action.INSERT_OR_EDIT"; ????public?static?final?String?ACTION_PICK?=?"android.intent.action.PICK"; ????public?static?final?String?ACTION_CREATE_SHORTCUT?=?"android.intent.action.CREATE_SHORTCUT"; ????public?static?final?String?ACTION_CHOOSER?=?"android.intent.action.CHOOSER"; ????public?static?final?String?ACTION_GET_CONTENT?=?"android.intent.action.GET_CONTENT"; ????public?static?final?String?ACTION_DIAL?=?"android.intent.action.DIAL"; ????public?static?final?String?ACTION_CALL?=?"android.intent.action.CALL"; ????public?static?final?String?ACTION_CALL_EMERGENCY?=?"android.intent.action.CALL_EMERGENCY"; ????public?static?final?String?ACTION_CALL_PRIVILEGED?=?"android.intent.action.CALL_PRIVILEGED"; ????public?static?final?String?ACTION_IP_CALL_PRIVILEGED?=?"android.intent.action.IP_CALL_PRIVILEGED"; ????public?static?final?String?ACTION_SENDTO?=?"android.intent.action.SENDTO"; ????public?static?final?String?ACTION_SEND?=?"android.intent.action.SEND"; ????public?static?final?String?ACTION_SEND_MULTIPLE?=?"android.intent.action.SEND_MULTIPLE"; ????public?static?final?String?ACTION_ANSWER?=?"android.intent.action.ANSWER"; ????public?static?final?String?ACTION_INSERT?=?"android.intent.action.INSERT"; ????public?static?final?String?ACTION_DELETE?=?"android.intent.action.DELETE"; ????public?static?final?String?ACTION_RUN?=?"android.intent.action.RUN"; ????public?static?final?String?ACTION_SYNC?=?"android.intent.action.SYNC"; ????public?static?final?String?ACTION_PICK_ACTIVITY?=?"android.intent.action.PICK_ACTIVITY"; ????public?static?final?String?ACTION_SEARCH?=?"android.intent.action.SEARCH"; ????public?static?final?String?ACTION_SYSTEM_TUTORIAL?=?"android.intent.action.SYSTEM_TUTORIAL"; ????public?static?final?String?ACTION_WEB_SEARCH?=?"android.intent.action.WEB_SEARCH"; ????public?static?final?String?ACTION_ALL_APPS?=?"android.intent.action.ALL_APPS"; ????public?static?final?String?ACTION_SET_WALLPAPER?=?"android.intent.action.SET_WALLPAPER"; ????public?static?final?String?ACTION_BUG_REPORT?=?"android.intent.action.BUG_REPORT"; ????public?static?final?String?ACTION_FACTORY_TEST?=?"android.intent.action.FACTORY_TEST"; ????public?static?final?String?ACTION_CALL_BUTTON?=?"android.intent.action.CALL_BUTTON"; ????public?static?final?String?ACTION_VOICE_COMMAND?=?"android.intent.action.VOICE_COMMAND"; ????public?static?final?String?ACTION_SEARCH_LONG_PRESS?=?"android.intent.action.SEARCH_LONG_PRESS"; ????public?static?final?String?ACTION_APP_ERROR?=?"android.intent.action.APP_ERROR"; ????public?static?final?String?ACTION_POWER_USAGE_SUMMARY?=?"android.intent.action.POWER_USAGE_SUMMARY"; ????public?static?final?String?ACTION_UPGRADE_SETUP?=?"android.intent.action.UPGRADE_SETUP"; ????public?static?final?String?ACTION_SCREEN_OFF?=?"android.intent.action.SCREEN_OFF"; ????public?static?final?String?ACTION_SCREEN_ON?=?"android.intent.action.SCREEN_ON"; ????public?static?final?String |
轉(zhuǎn)載于:https://www.cnblogs.com/happywangjia/p/4416112.html
總結(jié)
以上是生活随笔為你收集整理的android系统action大全的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: VS2010建立Windows服务项目时
- 下一篇: win7操作系统上,批处理文件,直接双击