所有的Android广播意图列表在哪里

我想收到Android广播消息。 有没有一个意向清单?

我find了广播意图清单。 它可以位于sdks(或android-sdks)/platforms//data/broadcast_actions.txt下。

谢谢。

对于API级别16(ICS),这是列表:

 android.app.action.ACTION_PASSWORD_CHANGED android.app.action.ACTION_PASSWORD_EXPIRING android.app.action.ACTION_PASSWORD_FAILED android.app.action.ACTION_PASSWORD_SUCCEEDED android.app.action.DEVICE_ADMIN_DISABLED android.app.action.DEVICE_ADMIN_DISABLE_REQUESTED android.app.action.DEVICE_ADMIN_ENABLED android.bluetooth.a2dp.profile.action.CONNECTION_STATE_CHANGED android.bluetooth.a2dp.profile.action.PLAYING_STATE_CHANGED android.bluetooth.adapter.action.CONNECTION_STATE_CHANGED android.bluetooth.adapter.action.DISCOVERY_FINISHED android.bluetooth.adapter.action.DISCOVERY_STARTED android.bluetooth.adapter.action.LOCAL_NAME_CHANGED android.bluetooth.adapter.action.SCAN_MODE_CHANGED android.bluetooth.adapter.action.STATE_CHANGED android.bluetooth.device.action.ACL_CONNECTED android.bluetooth.device.action.ACL_DISCONNECTED android.bluetooth.device.action.ACL_DISCONNECT_REQUESTED android.bluetooth.device.action.BOND_STATE_CHANGED android.bluetooth.device.action.CLASS_CHANGED android.bluetooth.device.action.FOUND android.bluetooth.device.action.NAME_CHANGED android.bluetooth.device.action.UUID android.bluetooth.devicepicker.action.DEVICE_SELECTED android.bluetooth.devicepicker.action.LAUNCH android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT android.bluetooth.headset.profile.action.AUDIO_STATE_CHANGED android.bluetooth.headset.profile.action.CONNECTION_STATE_CHANGED android.bluetooth.input.profile.action.CONNECTION_STATE_CHANGED android.bluetooth.pan.profile.action.CONNECTION_STATE_CHANGED android.hardware.action.NEW_PICTURE android.hardware.action.NEW_VIDEO android.hardware.input.action.QUERY_KEYBOARD_LAYOUTS android.intent.action.ACTION_POWER_CONNECTED android.intent.action.ACTION_POWER_DISCONNECTED android.intent.action.ACTION_SHUTDOWN android.intent.action.AIRPLANE_MODE android.intent.action.BATTERY_CHANGED android.intent.action.BATTERY_LOW android.intent.action.BATTERY_OKAY android.intent.action.BOOT_COMPLETED android.intent.action.CAMERA_BUTTON android.intent.action.CONFIGURATION_CHANGED android.intent.action.DATA_SMS_RECEIVED android.intent.action.DATE_CHANGED android.intent.action.DEVICE_STORAGE_LOW android.intent.action.DEVICE_STORAGE_OK android.intent.action.DOCK_EVENT android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE android.intent.action.FETCH_VOICEMAIL android.intent.action.GTALK_CONNECTED android.intent.action.GTALK_DISCONNECTED android.intent.action.HEADSET_PLUG android.intent.action.INPUT_METHOD_CHANGED android.intent.action.LOCALE_CHANGED android.intent.action.MANAGE_PACKAGE_STORAGE android.intent.action.MEDIA_BAD_REMOVAL android.intent.action.MEDIA_BUTTON android.intent.action.MEDIA_CHECKING android.intent.action.MEDIA_EJECT android.intent.action.MEDIA_MOUNTED android.intent.action.MEDIA_NOFS android.intent.action.MEDIA_REMOVED android.intent.action.MEDIA_SCANNER_FINISHED android.intent.action.MEDIA_SCANNER_SCAN_FILE android.intent.action.MEDIA_SCANNER_STARTED android.intent.action.MEDIA_SHARED android.intent.action.MEDIA_UNMOUNTABLE android.intent.action.MEDIA_UNMOUNTED android.intent.action.MY_PACKAGE_REPLACED android.intent.action.NEW_OUTGOING_CALL android.intent.action.NEW_VOICEMAIL android.intent.action.PACKAGE_ADDED android.intent.action.PACKAGE_CHANGED android.intent.action.PACKAGE_DATA_CLEARED android.intent.action.PACKAGE_FIRST_LAUNCH android.intent.action.PACKAGE_FULLY_REMOVED android.intent.action.PACKAGE_INSTALL android.intent.action.PACKAGE_NEEDS_VERIFICATION android.intent.action.PACKAGE_REMOVED android.intent.action.PACKAGE_REPLACED android.intent.action.PACKAGE_RESTARTED android.intent.action.PHONE_STATE android.intent.action.PROVIDER_CHANGED android.intent.action.PROXY_CHANGE android.intent.action.REBOOT android.intent.action.SCREEN_OFF android.intent.action.SCREEN_ON android.intent.action.TIMEZONE_CHANGED android.intent.action.TIME_SET android.intent.action.TIME_TICK android.intent.action.UID_REMOVED android.intent.action.USER_PRESENT android.intent.action.WALLPAPER_CHANGED android.media.ACTION_SCO_AUDIO_STATE_UPDATED android.media.AUDIO_BECOMING_NOISY android.media.RINGER_MODE_CHANGED android.media.SCO_AUDIO_STATE_CHANGED android.media.VIBRATE_SETTING_CHANGED android.media.action.CLOSE_AUDIO_EFFECT_CONTROL_SESSION android.media.action.OPEN_AUDIO_EFFECT_CONTROL_SESSION android.net.conn.BACKGROUND_DATA_SETTING_CHANGED android.net.nsd.STATE_CHANGED android.net.wifi.NETWORK_IDS_CHANGED android.net.wifi.RSSI_CHANGED android.net.wifi.SCAN_RESULTS android.net.wifi.STATE_CHANGE android.net.wifi.WIFI_STATE_CHANGED android.net.wifi.p2p.CONNECTION_STATE_CHANGE android.net.wifi.p2p.DISCOVERY_STATE_CHANGE android.net.wifi.p2p.PEERS_CHANGED android.net.wifi.p2p.STATE_CHANGED android.net.wifi.p2p.THIS_DEVICE_CHANGED android.net.wifi.supplicant.CONNECTION_CHANGE android.net.wifi.supplicant.STATE_CHANGE android.provider.Telephony.SIM_FULL android.provider.Telephony.SMS_CB_RECEIVED android.provider.Telephony.SMS_EMERGENCY_CB_RECEIVED android.provider.Telephony.SMS_RECEIVED android.provider.Telephony.SMS_REJECTED android.provider.Telephony.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED android.provider.Telephony.WAP_PUSH_RECEIVED android.speech.tts.TTS_QUEUE_PROCESSING_COMPLETED android.speech.tts.engine.TTS_DATA_INSTALLED 

* API级别21

 android.app.action.ACTION_PASSWORD_CHANGED android.app.action.ACTION_PASSWORD_EXPIRING android.app.action.ACTION_PASSWORD_FAILED android.app.action.ACTION_PASSWORD_SUCCEEDED android.app.action.DEVICE_ADMIN_DISABLED android.app.action.DEVICE_ADMIN_DISABLE_REQUESTED android.app.action.DEVICE_ADMIN_ENABLED android.app.action.LOCK_TASK_ENTERING android.app.action.LOCK_TASK_EXITING android.app.action.NEXT_ALARM_CLOCK_CHANGED android.app.action.PROFILE_PROVISIONING_COMPLETE android.bluetooth.a2dp.profile.action.CONNECTION_STATE_CHANGED android.bluetooth.a2dp.profile.action.PLAYING_STATE_CHANGED android.bluetooth.adapter.action.CONNECTION_STATE_CHANGED android.bluetooth.adapter.action.DISCOVERY_FINISHED android.bluetooth.adapter.action.DISCOVERY_STARTED android.bluetooth.adapter.action.LOCAL_NAME_CHANGED android.bluetooth.adapter.action.SCAN_MODE_CHANGED android.bluetooth.adapter.action.STATE_CHANGED android.bluetooth.device.action.ACL_CONNECTED android.bluetooth.device.action.ACL_DISCONNECTED android.bluetooth.device.action.ACL_DISCONNECT_REQUESTED android.bluetooth.device.action.BOND_STATE_CHANGED android.bluetooth.device.action.CLASS_CHANGED android.bluetooth.device.action.FOUND android.bluetooth.device.action.NAME_CHANGED android.bluetooth.device.action.PAIRING_REQUEST android.bluetooth.device.action.UUID android.bluetooth.devicepicker.action.DEVICE_SELECTED android.bluetooth.devicepicker.action.LAUNCH android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT android.bluetooth.headset.profile.action.AUDIO_STATE_CHANGED android.bluetooth.headset.profile.action.CONNECTION_STATE_CHANGED android.bluetooth.input.profile.action.CONNECTION_STATE_CHANGED android.bluetooth.pan.profile.action.CONNECTION_STATE_CHANGED android.hardware.action.NEW_PICTURE android.hardware.action.NEW_VIDEO android.hardware.hdmi.action.OSD_MESSAGE android.hardware.input.action.QUERY_KEYBOARD_LAYOUTS android.intent.action.ACTION_POWER_CONNECTED android.intent.action.ACTION_POWER_DISCONNECTED android.intent.action.ACTION_SHUTDOWN android.intent.action.AIRPLANE_MODE android.intent.action.APPLICATION_RESTRICTIONS_CHANGED android.intent.action.BATTERY_CHANGED android.intent.action.BATTERY_LOW android.intent.action.BATTERY_OKAY android.intent.action.BOOT_COMPLETED android.intent.action.CAMERA_BUTTON android.intent.action.CONFIGURATION_CHANGED android.intent.action.CONTENT_CHANGED android.intent.action.DATA_SMS_RECEIVED android.intent.action.DATE_CHANGED android.intent.action.DEVICE_STORAGE_LOW android.intent.action.DEVICE_STORAGE_OK android.intent.action.DOCK_EVENT android.intent.action.DOWNLOAD_COMPLETE android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED android.intent.action.DREAMING_STARTED android.intent.action.DREAMING_STOPPED android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE android.intent.action.FETCH_VOICEMAIL android.intent.action.GTALK_CONNECTED android.intent.action.GTALK_DISCONNECTED android.intent.action.HEADSET_PLUG android.intent.action.HEADSET_PLUG android.intent.action.INPUT_METHOD_CHANGED android.intent.action.LOCALE_CHANGED android.intent.action.MANAGE_PACKAGE_STORAGE android.intent.action.MEDIA_BAD_REMOVAL android.intent.action.MEDIA_BUTTON android.intent.action.MEDIA_CHECKING android.intent.action.MEDIA_EJECT android.intent.action.MEDIA_MOUNTED android.intent.action.MEDIA_NOFS android.intent.action.MEDIA_REMOVED android.intent.action.MEDIA_SCANNER_FINISHED android.intent.action.MEDIA_SCANNER_SCAN_FILE android.intent.action.MEDIA_SCANNER_STARTED android.intent.action.MEDIA_SHARED android.intent.action.MEDIA_UNMOUNTABLE android.intent.action.MEDIA_UNMOUNTED android.intent.action.MY_PACKAGE_REPLACED android.intent.action.NEW_OUTGOING_CALL android.intent.action.NEW_VOICEMAIL android.intent.action.PACKAGE_ADDED android.intent.action.PACKAGE_CHANGED android.intent.action.PACKAGE_DATA_CLEARED android.intent.action.PACKAGE_FIRST_LAUNCH android.intent.action.PACKAGE_FULLY_REMOVED android.intent.action.PACKAGE_INSTALL android.intent.action.PACKAGE_NEEDS_VERIFICATION android.intent.action.PACKAGE_REMOVED android.intent.action.PACKAGE_REPLACED android.intent.action.PACKAGE_RESTARTED android.intent.action.PACKAGE_VERIFIED android.intent.action.PHONE_STATE android.intent.action.PROVIDER_CHANGED android.intent.action.PROXY_CHANGE android.intent.action.REBOOT android.intent.action.SCREEN_OFF android.intent.action.SCREEN_ON android.intent.action.TIMEZONE_CHANGED android.intent.action.TIME_SET android.intent.action.TIME_TICK android.intent.action.UID_REMOVED android.intent.action.USER_PRESENT android.intent.action.WALLPAPER_CHANGED android.media.ACTION_SCO_AUDIO_STATE_UPDATED android.media.AUDIO_BECOMING_NOISY android.media.RINGER_MODE_CHANGED android.media.SCO_AUDIO_STATE_CHANGED android.media.VIBRATE_SETTING_CHANGED android.media.action.CLOSE_AUDIO_EFFECT_CONTROL_SESSION android.media.action.HDMI_AUDIO_PLUG android.media.action.OPEN_AUDIO_EFFECT_CONTROL_SESSION android.net.conn.BACKGROUND_DATA_SETTING_CHANGED android.net.conn.CONNECTIVITY_CHANGE android.net.nsd.STATE_CHANGED android.net.scoring.SCORER_CHANGED android.net.scoring.SCORE_NETWORKS android.net.wifi.NETWORK_IDS_CHANGED android.net.wifi.RSSI_CHANGED android.net.wifi.SCAN_RESULTS android.net.wifi.STATE_CHANGE android.net.wifi.WIFI_STATE_CHANGED android.net.wifi.p2p.CONNECTION_STATE_CHANGE android.net.wifi.p2p.DISCOVERY_STATE_CHANGE android.net.wifi.p2p.PEERS_CHANGED android.net.wifi.p2p.STATE_CHANGED android.net.wifi.p2p.THIS_DEVICE_CHANGED android.net.wifi.supplicant.CONNECTION_CHANGE android.net.wifi.supplicant.STATE_CHANGE android.nfc.action.ADAPTER_STATE_CHANGED android.os.action.POWER_SAVE_MODE_CHANGED android.provider.Telephony.SIM_FULL android.provider.Telephony.SMS_CB_RECEIVED android.provider.Telephony.SMS_DELIVER android.provider.Telephony.SMS_EMERGENCY_CB_RECEIVED android.provider.Telephony.SMS_RECEIVED android.provider.Telephony.SMS_REJECTED android.provider.Telephony.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED android.provider.Telephony.WAP_PUSH_DELIVER android.provider.Telephony.WAP_PUSH_RECEIVED android.speech.tts.TTS_QUEUE_PROCESSING_COMPLETED android.speech.tts.engine.TTS_DATA_INSTALLED 

更新Android API级别21的广播意图列表。

这里是意图引用 ,这里是很好的阅读关于意图和意图filter和另一个有趣的阅读是否可以使用该意图 。

全部位于Android的开发者网站上。 这是你应该总是search的第一个地方。

可以在.android-sdks \ platforms \ android-17 \ data \ broadcast_actions中轻松findList。

 android.app.action.ACTION_PASSWORD_CHANGED android.app.action.ACTION_PASSWORD_EXPIRING android.app.action.ACTION_PASSWORD_FAILED android.app.action.ACTION_PASSWORD_SUCCEEDED android.app.action.DEVICE_ADMIN_DISABLED android.app.action.DEVICE_ADMIN_DISABLE_REQUESTED android.app.action.DEVICE_ADMIN_ENABLED android.bluetooth.a2dp.profile.action.CONNECTION_STATE_CHANGED android.bluetooth.a2dp.profile.action.PLAYING_STATE_CHANGED android.bluetooth.adapter.action.CONNECTION_STATE_CHANGED android.bluetooth.adapter.action.DISCOVERY_FINISHED android.bluetooth.adapter.action.DISCOVERY_STARTED android.bluetooth.adapter.action.LOCAL_NAME_CHANGED android.bluetooth.adapter.action.SCAN_MODE_CHANGED android.bluetooth.adapter.action.STATE_CHANGED android.bluetooth.device.action.ACL_CONNECTED android.bluetooth.device.action.ACL_DISCONNECTED android.bluetooth.device.action.ACL_DISCONNECT_REQUESTED android.bluetooth.device.action.BOND_STATE_CHANGED android.bluetooth.device.action.CLASS_CHANGED android.bluetooth.device.action.FOUND android.bluetooth.device.action.NAME_CHANGED android.bluetooth.device.action.UUID android.bluetooth.devicepicker.action.DEVICE_SELECTED android.bluetooth.devicepicker.action.LAUNCH android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT android.bluetooth.headset.profile.action.AUDIO_STATE_CHANGED android.bluetooth.headset.profile.action.CONNECTION_STATE_CHANGED android.bluetooth.input.profile.action.CONNECTION_STATE_CHANGED android.bluetooth.pan.profile.action.CONNECTION_STATE_CHANGED android.hardware.action.NEW_PICTURE android.hardware.action.NEW_VIDEO android.hardware.input.action.QUERY_KEYBOARD_LAYOUTS android.intent.action.ACTION_POWER_CONNECTED android.intent.action.ACTION_POWER_DISCONNECTED android.intent.action.ACTION_SHUTDOWN android.intent.action.AIRPLANE_MODE android.intent.action.BATTERY_CHANGED android.intent.action.BATTERY_LOW android.intent.action.BATTERY_OKAY android.intent.action.BOOT_COMPLETED android.intent.action.CAMERA_BUTTON android.intent.action.CONFIGURATION_CHANGED android.intent.action.DATE_CHANGED android.intent.action.DEVICE_STORAGE_LOW android.intent.action.DEVICE_STORAGE_OK android.intent.action.DOCK_EVENT android.intent.action.DREAMING_STARTED android.intent.action.DREAMING_STOPPED android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE android.intent.action.FETCH_VOICEMAIL android.intent.action.GTALK_CONNECTED android.intent.action.GTALK_DISCONNECTED android.intent.action.HEADSET_PLUG android.intent.action.INPUT_METHOD_CHANGED android.intent.action.LOCALE_CHANGED android.intent.action.MANAGE_PACKAGE_STORAGE android.intent.action.MEDIA_BAD_REMOVAL android.intent.action.MEDIA_BUTTON android.intent.action.MEDIA_CHECKING android.intent.action.MEDIA_EJECT android.intent.action.MEDIA_MOUNTED android.intent.action.MEDIA_NOFS android.intent.action.MEDIA_REMOVED android.intent.action.MEDIA_SCANNER_FINISHED android.intent.action.MEDIA_SCANNER_SCAN_FILE android.intent.action.MEDIA_SCANNER_STARTED android.intent.action.MEDIA_SHARED android.intent.action.MEDIA_UNMOUNTABLE android.intent.action.MEDIA_UNMOUNTED android.intent.action.MY_PACKAGE_REPLACED android.intent.action.NEW_OUTGOING_CALL android.intent.action.NEW_VOICEMAIL android.intent.action.PACKAGE_ADDED android.intent.action.PACKAGE_CHANGED android.intent.action.PACKAGE_DATA_CLEARED android.intent.action.PACKAGE_FIRST_LAUNCH android.intent.action.PACKAGE_FULLY_REMOVED android.intent.action.PACKAGE_INSTALL android.intent.action.PACKAGE_NEEDS_VERIFICATION android.intent.action.PACKAGE_REMOVED android.intent.action.PACKAGE_REPLACED android.intent.action.PACKAGE_RESTARTED android.intent.action.PACKAGE_VERIFIED android.intent.action.PHONE_STATE android.intent.action.PROVIDER_CHANGED android.intent.action.PROXY_CHANGE android.intent.action.REBOOT android.intent.action.SCREEN_OFF android.intent.action.SCREEN_ON android.intent.action.TIMEZONE_CHANGED android.intent.action.TIME_SET android.intent.action.TIME_TICK android.intent.action.UID_REMOVED android.intent.action.USER_PRESENT android.intent.action.WALLPAPER_CHANGED android.media.ACTION_SCO_AUDIO_STATE_UPDATED android.media.AUDIO_BECOMING_NOISY android.media.RINGER_MODE_CHANGED android.media.SCO_AUDIO_STATE_CHANGED android.media.VIBRATE_SETTING_CHANGED android.media.action.CLOSE_AUDIO_EFFECT_CONTROL_SESSION android.media.action.OPEN_AUDIO_EFFECT_CONTROL_SESSION android.net.conn.BACKGROUND_DATA_SETTING_CHANGED android.net.nsd.STATE_CHANGED android.net.wifi.NETWORK_IDS_CHANGED android.net.wifi.RSSI_CHANGED android.net.wifi.SCAN_RESULTS android.net.wifi.STATE_CHANGE android.net.wifi.WIFI_STATE_CHANGED android.net.wifi.p2p.CONNECTION_STATE_CHANGE android.net.wifi.p2p.DISCOVERY_STATE_CHANGE android.net.wifi.p2p.PEERS_CHANGED android.net.wifi.p2p.STATE_CHANGED android.net.wifi.p2p.THIS_DEVICE_CHANGED android.net.wifi.supplicant.CONNECTION_CHANGE android.net.wifi.supplicant.STATE_CHANGE android.speech.tts.TTS_QUEUE_PROCESSING_COMPLETED android.speech.tts.engine.TTS_DATA_INSTALLED 

那么我有一个方法,我得到所有意向清单,可能不是一个正式的,但工作得很好。

打开项目的Manifest文件(AndroidManifest.xml),将下面的代码片段放在“Application”标签内。

 <receiver android:name="test" android:enabled="true"> <intent-filter> <action android:name="android."/> </intent-filter> </receiver> 

下一步将光标置于“android”之后的intent-filter部分。 并按下Ctrl +空格。

你会得到所有可能的意图popup,然后你可以复制清单,无论你想要的。

完成后,不要忘记从Manifest中删除上面的代码。

希望能帮助到你。

Android Studio的当前版本(1.3)会给你一个列表,如果你按下CTRL + SPACE这样的话:

在这里输入图像说明

在我看来,没有这样的名单。 在SDK目录中有一个有用的文件“broadcast_actions.txt”。 但它只是android API框架(android。),而不是本地应用程序(com。),以及(显然)不是第三方应用程序。 本地应用程序只有一小部分为其广播意图提供文档。 对于第三方应用程序,您应该检查其文档或源代码(如果可用)。

例如,Android本地相机应用程序(com.android.camera)在任何时候都会拍摄新照片,

 com.android.camera.NEW_PICTURE 

据我所知,可以通过logcat在手机上收听所有的广播内容。

检查Android Intents文档