Broadcast for Android

Source: Internet
Author: User

Preface
Welcome to share and recommend useful code segments ~~
Statement
You are welcome to repost, but please keep the original source of the article:
CSDN:
Http://www.csdn.net
O Mo Li in the rainy season:Http://blog.csdn.net/luckkof

Body

Intent. ACTION_AIRPLANE_MODE_CHANGED;

// Disable or enable broadcast in flight mode

Intent. ACTION_BATTERY_CHANGED;

// The charging status or the battery power changes

// The battery charging status and charge level change. The broadcast cannot be received through the formation declaration, and only registered through Context. registerReceiver ()

Intent. ACTION_BATTERY_LOW;

// Indicates the battery power is low

Intent. ACTION_BATTERY_OKAY;

// Indicates that the battery power is sufficient, that is, the broadcast is triggered when the battery power changes from low to full.

Intent. ACTION_BOOT_COMPLETED;

// After the system is started, this action is broadcast once (only once ).

Intent. ACTION_CAMERA_BUTTON;

// Broadcast when you press the camera button (hardware button)

Intent. ACTION_CLOSE_SYSTEM_DIALOGS;

// When the screen times out to lock the screen, the android system will broadcast this Action message when you press the power button and press long or short to lock the screen (no matter whether the dialog box is displayed ).

Intent. ACTION_CONFIGURATION_CHANGED;

// Broadcast sent when the current settings of the device are changed (For details, refer to Configuration. java)

Intent. ACTION_DATE_CHANGED;

// This broadcast is triggered when the device date changes

Intent. ACTION_DEVICE_STORAGE_LOW;

// Broadcast when the device memory is insufficient. Can this broadcast be used only by the system, and other apps are unavailable?

Intent. ACTION_DEVICE_STORAGE_ OK;

// When the device memory is not enough to be enough, this broadcast can only be used by the system, other apps are not available?

Intent. ACTION_DOCK_EVENT;

//

// Frame Works \ base \ services \ java \ com \ android \ server \ DockObserver. java

Intent. ACTION_EXTERNAL_APPLICATIONS_AVAILABLE;

/// Broadcast sent after the mobile APP is completed (mobile refers to APP2SD)

Intent. ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE;

// Broadcast sent when the APP is being moved (mobile refers to APP2SD)

Intent. ACTION_GTALK_SERVICE_CONNECTED;

// Broadcast sent when a connection is established in Gtalk

Intent. ACTION_GTALK_SERVICE_DISCONNECTED;

// Broadcast sent when Gtalk is disconnected

Intent. ACTION_HEADSET_PLUG;

// Broadcast sent when headphones are inserted in the headphone port

Intent. ACTION_INPUT_METHOD_CHANGED;

// Broadcast sent when the input method is changed

Intent. ACTION_LOCALE_CHANGED;

// Broadcast sent when the current region of the device has been changed

Intent. ACTION_MANAGE_PACKAGE_STORAGE;

//

Intent. ACTION_MEDIA_BAD_REMOVAL;

// The SD card is not correctly removed (correct method: Set -- SD card and device memory -- uninstall SD card), but the broadcast sent when the SD card is removed

// Broadcast: the expansion media (expansion card) has been removed from the SD card slot, but the mount point has not been removed (unmount)

Intent. ACTION_MEDIA_BUTTON;

// Broadcast triggered when the "Media Button" Button is pressed. If there is a "Media Button" Button (hardware Button)

Intent. ACTION_MEDIA_CHECKING;

// Insert an external storage device. For example, when the SD card is inserted, the system checks the SD card. What broadcast is sent at this time?

Intent. ACTION_MEDIA_EJECT;

// The broadcast (such as the SD card or mobile hard disk) sent by an external large-capacity storage device has been unmounted. Will the broadcast be sent no matter whether it is correctly uninstalled?

// Broadcast: You want to remove the extended media (unplug the expansion card ).

Intent. ACTION_MEDIA_MOUNTED;

// Broadcast sent when an SD card is inserted and properly installed (identified)

// Broadcast: the extended media is inserted and mounted.

Intent. ACTION_MEDIA_NOFS;

//

Intent. ACTION_MEDIA_REMOVED;

// The external storage device has been removed. Will this broadcast be sent whether the device is uninstalled correctly?

// Broadcast: the extended media is removed.

Intent. ACTION_MEDIA_SCANNER_FINISHED;

// Broadcast: a directory of the media that has been scanned

Intent. ACTION_MEDIA_SCANNER_SCAN_FILE;

//

Intent. ACTION_MEDIA_SCANNER_STARTED;

// Broadcast: Start scanning a directory of Media

Intent. ACTION_MEDIA_SHARED;

// Broadcast: the mounting of the extended media is unmounted because it has been shared as a USB large capacity storage.

Intent. ACTION_MEDIA_UNMOUNTABLE;

//

Intent. ACTION_MEDIA_UNMOUNTED

// Broadcast: the extended media exists, but it has not been mounted ).

Intent. ACTION_NEW_OUTGOING_CALL;

//

Intent. ACTION_PACKAGE_ADDED;

// After successful APK Installation

// Broadcast: An application package is installed on the device.

// A new application package has been installed on the device, and the data includes the package name (the latest package program cannot receive this broadcast)

Intent. ACTION_PACKAGE_CHANGED;

// An existing application package has been changed, including the package name

Intent. ACTION_PACKAGE_DATA_CLEARED;

// The broadcast sent when the data of an application is cleared (when setting -- Application Management -- select an application and then click "Clear Data ?)

// The user has cleared the data of a package, including the package name (the package clearing program cannot receive this broadcast)

Intent. ACTION_PACKAGE_INSTALL;

// Trigger a broadcast sent when the download is complete and the installation is complete, such as downloading an application in the e-market?

//

Intent. ACTION_PACKAGE_REMOVED;

// Broadcast sent after an APK is deleted successfully

// An existing application package has been removed from the device, including the package name (this broadcast cannot be received by the package program being installed)

Intent. ACTION_PACKAGE_REPLACED;

// Replace the broadcast that is sent when an existing installation package is installed (whether the installed APP is newer or older than the previous one ?)

Intent. ACTION_PACKAGE_RESTARTED;

// When a user starts a package again, all processes in the package will be killed, and all running time statuses associated with the package should be removed, including the package name (restarting the package program cannot receive this broadcast)

Intent. ACTION_POWER_CONNECTED;

// Broadcast when the external power is plugged in

Intent. ACTION_POWER_DISCONNECTED;

// Broadcast sent when the external power is disconnected

Intent. ACTION_PROVIDER_CHANGED;

//

Intent. ACTION_REBOOT;

// Broadcast when the device is restarted

Intent. ACTION_SCREEN_OFF;

// Broadcast after the screen is disabled

Intent. ACTION_SCREEN_ON;

// Broadcast after the screen is opened

Intent. ACTION_SHUTDOWN;

// Broadcast triggered when the system is disabled

Intent. ACTION_TIMEZONE_CHANGED;

// Broadcast when the time zone changes

Intent. ACTION_TIME_CHANGED;

// Broadcast sent when the time is set

Intent. ACTION_TIME_TICK;

// Broadcast: the current time has changed (normal time elapsed ).

// The current time changes and is sent every minute. It cannot be received through the component declaration. It is registered only through the Context. registerReceiver () method.

Intent. ACTION_UID_REMOVED;

// A user ID has removed the broadcast from the system

//

Intent. ACTION_UMS_CONNECTED;

// What is the broadcast sent when the device enters the USB high-capacity storage status?

Intent. ACTION_UMS_DISCONNECTED;

// Is the broadcast sent when the device is changed from the USB large-capacity storage status to the normal status?

Intent. ACTION_USER_PRESENT;

//

Intent. ACTION_WALLPAPER_CHANGED;

// Broadcast when the device wallpaper has changed






















































































































































































Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.