`
leidiqiu
  • 浏览: 133110 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Intent 大全

阅读更多

很多时候需要用到 Intent 去跳转,比如跳转无线设置的界面:

 

Intent in = new Intent();
in.setAction("android.settings.WIRELESS_SETTINGS");
startActivity(in);

 

action有很多,参考如下:

 

 Android 1.5 API Level3

android.intent.action.ALL_APPS   
android.intent.action.ANSWER   
android.intent.action.ATTACH_DATA   
android.intent.action.BUG_REPORT   
android.intent.action.CALL   
android.intent.action.CALL_BUTTON   
android.intent.action.CHOOSER   
android.intent.action.CREATE_LIVE_FOLDER   
android.intent.action.CREATE_SHORTCUT   
android.intent.action.DELETE   
android.intent.action.DIAL   
android.intent.action.EDIT   
android.intent.action.GET_CONTENT   
android.intent.action.INSERT   
android.intent.action.INSERT_OR_EDIT   
android.intent.action.MAIN   
android.intent.action.MEDIA_SEARCH   
android.intent.action.PICK   
android.intent.action.PICK_ACTIVITY   
android.intent.action.RINGTONE_PICKER   
android.intent.action.RUN   
android.intent.action.SEARCH   
android.intent.action.SEARCH_LONG_PRESS   
android.intent.action.SEND   
android.intent.action.SENDTO   
android.intent.action.SET_WALLPAPER   
android.intent.action.SYNC   
android.intent.action.SYSTEM_TUTORIAL   
android.intent.action.VIEW   
android.intent.action.VOICE_COMMAND   
android.intent.action.WEB_SEARCH   
android.net.wifi.PICK_WIFI_NETWORK   
android.settings.AIRPLANE_MODE_SETTINGS   
android.settings.APN_SETTINGS   
android.settings.APPLICATION_DEVELOPMENT_SETTINGS   
android.settings.APPLICATION_SETTINGS   
android.settings.BLUETOOTH_SETTINGS   
android.settings.DATA_ROAMING_SETTINGS   
android.settings.DATE_SETTINGS   
android.settings.DISPLAY_SETTINGS   
android.settings.INPUT_METHOD_SETTINGS   
android.settings.INTERNAL_STORAGE_SETTINGS   
android.settings.LOCALE_SETTINGS   
android.settings.LOCATION_SOURCE_SETTINGS   
android.settings.MANAGE_APPLICATIONS_SETTINGS   
android.settings.MEMORY_CARD_SETTINGS   
android.settings.NETWORK_OPERATOR_SETTINGS   
android.settings.QUICK_LAUNCH_SETTINGS   
android.settings.SECURITY_SETTINGS   
android.settings.SETTINGS   
android.settings.SOUND_SETTINGS   
android.settings.SYNC_SETTINGS   
android.settings.USER_DICTIONARY_SETTINGS   
android.settings.WIFI_IP_SETTINGS   
android.settings.WIFI_SETTINGS   
android.settings.WIRELESS_SETTINGS

android.bluetooth.a2dp.intent.action.SINK_STATE_CHANGED   
android.bluetooth.intent.action.BLUETOOTH_STATE_CHANGED   
android.bluetooth.intent.action.BOND_STATE_CHANGED_ACTION   
android.bluetooth.intent.action.DISCOVERY_COMPLETED   
android.bluetooth.intent.action.DISCOVERY_STARTED   
android.bluetooth.intent.action.HEADSET_ADUIO_STATE_CHANGED   
android.bluetooth.intent.action.HEADSET_STATE_CHANGED   
android.bluetooth.intent.action.NAME_CHANGED   
android.bluetooth.intent.action.PAIRING_CANCEL   
android.bluetooth.intent.action.PAIRING_REQUEST   
android.bluetooth.intent.action.REMOTE_DEVICE_CONNECTED   
android.bluetooth.intent.action.REMOTE_DEVICE_DISAPPEARED   
android.bluetooth.intent.action.REMOTE_DEVICE_DISAPPEARED   
android.bluetooth.intent.action.REMOTE_DEVICE_DISCONNECTED   
android.bluetooth.intent.action.REMOTE_DEVICE_DISCONNECT_REQUESTED   
android.bluetooth.intent.action.REMOTE_DEVICE_FOUND   
android.bluetooth.intent.action.REMOTE_NAME_FAILED   
android.bluetooth.intent.action.REMOTE_NAME_UPDATED   
android.bluetooth.intent.action.SCAN_MODE_CHANGED   
android.intent.action.AIRPLANE_MODE   
android.intent.action.BATTERY_CHANGED   
android.intent.action.BATTERY_LOW   
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.GTALK_CONNECTED   
android.intent.action.GTALK_DISCONNECTED   
android.intent.action.HEADSET_PLUG   
android.intent.action.INPUT_METHOD_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.NEW_OUTGOING_CALL   
android.intent.action.PACKAGE_ADDED   
android.intent.action.PACKAGE_CHANGED   
android.intent.action.PACKAGE_DATA_CLEARED   
android.intent.action.PACKAGE_INSTALL   
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.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.UMS_CONNECTED   
android.intent.action.UMS_DISCONNECTED   
android.intent.action.USER_PRESENT   
android.intent.action.WALLPAPER_CHANGED   
android.media.AUDIO_BECOMING_NOISY   
android.media.RINGER_MODE_CHANGED   
android.media.VIBRATE_SETTING_CHANGED   
android.net.conn.BACKGROUND_DATA_SETTING_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.supplicant.CONNECTION_CHANGE   
android.net.wifi.supplicant.STATE_CHANGE   
android.provider.Telephony.SIM_FULL   
android.provider.Telephony.SMS_RECEIVED   
android.provider.Telephony.WAP_PUSH_RECEIVED   
com.google.gservices.intent.action.GSERVICES_CHANGED

Android 1.6 API Level4

android.intent.action.POWER_USAGE_SUMMARY   
android.intent.action.SEND_MULTIPLE   
android.speech.tts.engine.CHECK_TTS_DATA   
android.speech.tts.engine.INSTALL_TTS_DATA

android.intent.action.ACTION_POWER_CONNECTED   
android.intent.action.ACTION_POWER_DISCONNECTED   
android.intent.action.ACTION_SHUTDOWN   
android.intent.action.BATTERY_OKAY   
android.speech.tts.TTS_QUEUE_PROCESSING_COMPLETED   
android.speech.tts.engine.TTS_DATA_INSTALLED   
com.DevDiv.action.CWJ_DEMO
com.google.gservices.intent.action.GSERVICES_OVERRIDE

Android 2.0,2..01,2.1 API Level5,6,7

android.bluetooth.adapter.action.REQUEST_DISCOVERABLE   
android.bluetooth.adapter.action.REQUEST_ENABLE   
android.settings.ACCESSIBILITY_SETTINGS   
android.settings.PRIVACY_SETTINGS

android.bluetooth.a2dp.action.SINK_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.devicepicker.action.DEVICE_SELECTED   
android.bluetooth.devicepicker.action.LAUNCH   
android.bluetooth.headset.action.AUDIO_STATE_CHANGED   
android.bluetooth.headset.action.STATE_CHANGED
android.intent.action.DOCK_EVENT   
android.provider.Telephony.SMS_REJECTED
android.intent.action.LOCALE_CHANGED

Android 2.2 API Level8

android.app.action.ADD_DEVICE_ADMIN   
android.app.action.SET_NEW_PASSWORD   
android.intent.action.MUSIC_PLAYER   
android.search.action.SEARCH_SETTINGS   
android.settings.ADD_ACCOUNT_SETTINGS   
android.settings.DEVICE_INFO_SETTINGS


android.app.action.ACTION_PASSWORD_CHANGED   
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.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE   
android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE   
android.media.SCO_AUDIO_STATE_CHANGED

1
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics