当前位置: 代码迷 >> Android >> android intent中定义的Activity Action跟Broadcast Action
  详细解决方案

android intent中定义的Activity Action跟Broadcast Action

热度:66   发布时间:2016-05-01 19:30:00.0
android intent中定义的Activity Action和Broadcast Action

?

StringACTION_AIRPLANE_MODE_CHANGED

Broadcast Action: The user has switched the phone

into or out of Airplane Mode.

StringACTION_ALL_APPSActivity Action: List all available applications

Input: Nothing.

StringACTION_ANSWERActivity Action: Handle an incoming phone call.
StringACTION_APP_ERROR

Activity Action: The user pressed the "Report" button

in the crash/ANR dialog.

StringACTION_ATTACH_DATA

Used to indicate that some piece of data should be

attached to some other place.

StringACTION_BATTERY_CHANGED

Broadcast Action: This is a?sticky broadcast?containing

the charging state, level, and other information about

the battery.

StringACTION_BATTERY_LOW

Broadcast Action: Indicates low battery condition on

the device.

StringACTION_BATTERY_OKAY

Broadcast Action: Indicates the battery is now okay

after being low.

StringACTION_BOOT_COMPLETED

Broadcast Action: This is broadcast once, after the

system has finished booting.

StringACTION_BUG_REPORTActivity Action: Show activity for reporting a bug.
StringACTION_CALL

Activity Action: Perform a call to someone specified

by the data.

StringACTION_CALL_BUTTON

Activity Action: The user pressed the "call" button to

go to the dialer or other appropriate UI for placing a call.

StringACTION_CAMERA_BUTTONBroadcast Action: The "Camera Button" was pressed.
StringACTION_CHOOSER

Activity Action: Display an activity chooser, allowing the

user to pick what they want to before proceeding.

StringACTION_CLOSE_SYSTEM_DIALOGS

Broadcast Action: This is broadcast when a user action

should request a temporary system dialog to dismiss.

StringACTION_CONFIGURATION_CHANGED

Broadcast Action: The current device?Configuration?

(orientation, locale, etc) has changed.

StringACTION_CREATE_SHORTCUTActivity Action: Creates a shortcut.
StringACTION_DATE_CHANGEDBroadcast Action: The date has changed.
StringACTION_DEFAULT

A synonym for?ACTION_VIEW, the "standard" action that is

performed on a piece of data.

StringACTION_DELETEActivity Action: Delete the given data from its container.
StringACTION_DEVICE_STORAGE_LOW

Broadcast Action: A sticky broadcast that indicates low

memory condition on the device

This is a protected intent that can only be sent by the system.

StringACTION_DEVICE_STORAGE_OK

Broadcast Action: Indicates low memory condition on the

device no longer exists

This is a protected intent that can only be sent by the system.

StringACTION_DIALActivity Action: Dial a number as specified by the data.
StringACTION_DOCK_EVENT

Broadcast Action: A sticky broadcast for changes in the physical

docking state of the device.

StringACTION_EDITActivity Action: Provide explicit editable access to the given data.
StringACTION_EXTERNAL_APPLICATIONS_AVAILABLE

Broadcast Action: Resources for a set of packages (which were

previously unavailable) are currently available since the media on

which they exist is available.

StringACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE

Broadcast Action: Resources for a set of packages are currently

unavailable since the media on which they exist is unavailable.

StringACTION_FACTORY_TESTActivity Action: Main entry point for factory tests.
StringACTION_GET_CONTENT

Activity Action: Allow the user to select a particular kind of data

and return it.

StringACTION_GTALK_SERVICE_CONNECTEDBroadcast Action: An GTalk connection has been established.
StringACTION_GTALK_SERVICE_DISCONNECTEDBroadcast Action: An GTalk connection has been disconnected.
StringACTION_HEADSET_PLUGBroadcast Action: Wired Headset plugged in or unplugged.
StringACTION_INPUT_METHOD_CHANGEDBroadcast Action: An input method has been changed.
StringACTION_INSERTActivity Action: Insert an empty item into the given container.
StringACTION_INSERT_OR_EDIT

Activity Action: Pick an existing item, or insert a new item,

and then edit it.

StringACTION_INSTALL_PACKAGEActivity Action: Launch application installer.
StringACTION_LOCALE_CHANGEDBroadcast Action: The current device's locale has changed.
StringACTION_MAIN

Activity Action: Start as a main entry point, does not expect to

receive data.

StringACTION_MANAGE_NETWORK_USAGE

Activity Action: Show settings for managing network data usage of

a specific application.

StringACTION_MANAGE_PACKAGE_STORAGE

Broadcast Action: Indicates low memory condition notification

acknowledged by user and package management should be started.

StringACTION_MEDIA_BAD_REMOVAL

Broadcast Action: External media was removed from SD card slot,

but mount point was not unmounted.

StringACTION_MEDIA_BUTTONBroadcast Action: The "Media Button" was pressed.
StringACTION_MEDIA_CHECKING

Broadcast Action: External media is present, and being disk-checked

The path to the mount point for the checking media is contained

in the Intent.mData field.

StringACTION_MEDIA_EJECT

Broadcast Action: User has expressed the desire to remove the

external storage media.

StringACTION_MEDIA_MOUNTED

Broadcast Action: External media is present and mounted at its

mount point.

StringACTION_MEDIA_NOFS

Broadcast Action: External media is present, but is using an

incompatible fs (or is blank) The path to the mount point for the

checking media is contained in the Intent.mData field.

StringACTION_MEDIA_REMOVEDBroadcast Action: External media has been removed.
StringACTION_MEDIA_SCANNER_FINISHEDBroadcast Action: The media scanner has finished scanning a directory.
StringACTION_MEDIA_SCANNER_SCAN_FILE

Broadcast Action: Request the media scanner to scan a file and

add it to the media database.

StringACTION_MEDIA_SCANNER_STARTEDBroadcast Action: The media scanner has started scanning a directory.
StringACTION_MEDIA_SHARED

Broadcast Action: External media is unmounted because it is being

shared via USB mass storage.

StringACTION_MEDIA_UNMOUNTABLEBroadcast Action: External media is present but cannot be mounted.
StringACTION_MEDIA_UNMOUNTED

Broadcast Action: External media is present, but not mounted at its

mount point.

StringACTION_MY_PACKAGE_REPLACED

Broadcast Action: A new version of your application has been installed

over an existing one.

StringACTION_NEW_OUTGOING_CALLBroadcast Action: An outgoing call is about to be placed.
StringACTION_PACKAGE_ADDEDBroadcast Action: A new application package has been installed on the device.
StringACTION_PACKAGE_CHANGEDBroadcast Action: An existing application package has been changed (e.g.
StringACTION_PACKAGE_DATA_CLEAREDBroadcast Action: The user has cleared the data of a package.
StringACTION_PACKAGE_FIRST_LAUNCH

Broadcast Action: Sent to the installer package of an application when

that application is first launched (that is the first time it is moved out

of the stopped state).

StringACTION_PACKAGE_FULLY_REMOVED

Broadcast Action: An existing application package has been completely

removed from the device.

StringACTION_PACKAGE_INSTALLThis constant is deprecated. This constant has never been used.
StringACTION_PACKAGE_NEEDS_VERIFICATION

Broadcast Action: Sent to the system package verifier when a

package needs to be verified.

StringACTION_PACKAGE_REMOVED

Broadcast Action: An existing application package has been removed

from the device.

StringACTION_PACKAGE_REPLACED

Broadcast Action: A new version of an application package has been

installed, replacing an existing version that was previously installed.

StringACTION_PACKAGE_RESTARTED

Broadcast Action: The user has restarted a package, and all of its

processes have been killed.

StringACTION_PASTE

Activity Action: Create a new item in the given container, initializing

it from the current contents of the clipboard.

StringACTION_PICKActivity Action: Pick an item from the data, returning what was selected.
StringACTION_PICK_ACTIVITYActivity Action: Pick an activity given an intent, returning the class selected.
StringACTION_POWER_CONNECTEDBroadcast Action: External power has been connected to the device.
StringACTION_POWER_DISCONNECTEDBroadcast Action: External power has been removed from the device.
StringACTION_POWER_USAGE_SUMMARYActivity Action: Show power usage information to the user.
StringACTION_PROVIDER_CHANGED

Broadcast Action: Some content providers have parts of their namespace

where they publish new events or items that the user may be

especially interested in.

StringACTION_REBOOTBroadcast Action: Have the device reboot.
StringACTION_RUNActivity Action: Run the data, whatever that means.
StringACTION_SCREEN_OFFBroadcast Action: Sent after the screen turns off.
StringACTION_SCREEN_ONBroadcast Action: Sent after the screen turns on.
StringACTION_SEARCHActivity Action: Perform a search.
StringACTION_SEARCH_LONG_PRESSActivity Action: Start action associated with long pressing on the search key.
StringACTION_SENDActivity Action: Deliver some data to someone else.
StringACTION_SENDTOActivity Action: Send a message to someone specified by the data.
StringACTION_SEND_MULTIPLEActivity Action: Deliver multiple data to someone else.
StringACTION_SET_WALLPAPERActivity Action: Show settings for choosing wallpaper

Input: Nothing.

StringACTION_SHUTDOWNBroadcast Action: Device is shutting down.
StringACTION_SYNCActivity Action: Perform a data synchronization.
StringACTION_SYSTEM_TUTORIALActivity Action: Start the platform-defined tutorial

Input:?getStringExtra(SearchManager.QUERY)?is the text to search for.

StringACTION_TIMEZONE_CHANGEDBroadcast Action: The timezone has changed.
StringACTION_TIME_CHANGEDBroadcast Action: The time was set.
StringACTION_TIME_TICKBroadcast Action: The current time has changed.
StringACTION_UID_REMOVEDBroadcast Action: A user ID has been removed from the system.
StringACTION_UMS_CONNECTEDThis constant is deprecated. replaced by android.os.storage.StorageEventListener
StringACTION_UMS_DISCONNECTEDThis constant is deprecated. replaced by android.os.storage.StorageEventListener
StringACTION_UNINSTALL_PACKAGEActivity Action: Launch application uninstaller.
StringACTION_USER_PRESENT

Broadcast Action: Sent when the user is present after device

wakes up (e.g when the keyguard is gone).

StringACTION_VIEWActivity Action: Display the data to the user.
StringACTION_VOICE_COMMANDActivity Action: Start Voice Command.
StringACTION_WALLPAPER_CHANGEDBroadcast Action: The current system wallpaper has changed.
StringACTION_WEB_SEARCHActivity Action: Perform a web search.
  相关解决方案