This article gives you a summary of the commonly used system broadcasting.
Not to mention much, go directly to the code:
- Broadcasting when shutting down or turning on flight mode
Intent.ACTION_AIRPLANE_MODE_CHANGED
- Charging status, or changes in battery power
<strong>Intent.ACTION_BATTERY_CHANGED;
<strong>Intent.ACTION_BATTERY_LOW;
- It means that the battery is fully charged, that is, when the battery changes from low to full, it will broadcast.
<strong>Intent.ACTION_BATTERY_OKAY;
- After the system is booted, this action is broadcast once (only once).
Intent.ACTION_BOOT_COMPLETED
- Broadcasting by pressing the Photo button (hardware button) while taking pictures
Intent.ACTION_CAMERA_BUTTON
- When the screen timed out to lock the screen
Intent.ACTION_CLOSE_SYSTEM_DIALOGS;
- Broadcast issued when the device's current settings are changed
Intent.ACTION_CONFIGURATION_CHANGED;
- This broadcast will be sent when the date of the device changes.
Intent.ACTION_DATE_CHANGED
- Broadcast issued when the device is out of memory
Intent.ACTION_DEVICE_STORAGE_LOW;
- Broadcasting from insufficient to sufficient device memory
Intent.ACTION_DEVICE_STORAGE_OK;
- The place to issue this broadcast is frameworks base services java com android server DockObserver. Java
Intent.ACTION_DOCK_EVENT
- After the mobile APP is completed, the broadcast is sent (mobile refers to: APP2SD)
Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE
- When moving APP, the broadcast is sent (mobile means: APP2SD)
Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE
- Broadcasting when Gtalk has established a connection
Intent.ACTION_GTALK_SERVICE_CONNECTED
- Broadcast when Gtalk is disconnected
Intent.ACTION_GTALK_SERVICE_DISCONNECTED
- Broadcasting when inserting headphones into the headphone port
Intent.ACTION_HEADSET_PLUG
- Broadcasting when changing input method
Intent.ACTION_INPUT_METHOD_CHANGED
- Broadcast issued when the device's current area settings have changed
Intent.ACTION_LOCALE_CHANGED
- Improper removal of SD cards (correct removal of SD cards: setting - SD cards and device memory - uninstalling SD cards), but the broadcast issued when the SD cards are taken out
Intent.ACTION_MEDIA_BAD_REMOVAL;
- Broadcasting when pressing the "Media Button" button, if there is a "Media Button" button (hardware button)
Intent.ACTION_MEDIA_BUTTON
- When an external storage device, such as an SD card, is inserted, the system checks the SD card and broadcasts at that time.
Intent.ACTION_MEDIA_CHECKING
- Broadcasting from external storage devices (such as SD cards or mobile hard disks) has been unplugged and will be delivered regardless of whether it is properly uninstalled or not.
Intent.ACTION_MEDIA_EJECT;
- Broadcast issued when the SD card is inserted and installed (identified) correctly
Intent.ACTION_MEDIA_MOUNTED;
- External storage devices have been removed and this broadcast will be sent whether or not they are uninstalled correctly.
Intent.ACTION_MEDIA_REMOVED;
- A directory of scanned media
Intent.ACTION_MEDIA_SCANNER_FINISHED
- A Catalogue of Starting Scanning Media
Intent.ACTION_MEDIA_SCANNER_STARTED
- The mount of the extended media is unmounted because it has been shared as a USB mass storage.
Intent.ACTION_MEDIA_SHARED
- Extended media exists, but has not yet been mounted
Intent.ACTION_MEDIA_UNMOUNTED
- After successful installation of APK
Intent.ACTION_PACKAGE_ADDED;
- An existing application package has been changed, including the package name
Intent.ACTION_PACKAGE_CHANGED
- Broadcast emitted when clearing data from an application
Intent.ACTION_PACKAGE_DATA_CLEARED;
- Trigger a download and complete the installation of the broadcast, such as downloading applications in the electronic marketplace
Intent.ACTION_PACKAGE_INSTALL
- Broadcasting after successful deletion of an APK
Intent.ACTION_PACKAGE_REMOVED;
- Replace the broadcast that is emitted when an existing installation package is installed (whether the current installed APP is newer or older than the previous one, this broadcast will be emitted)
Intent.ACTION_PACKAGE_REPLACED
- Users restart a package, all processes of the package will be killed, and all runtime states associated with it should be removed, including the package name (restarting the package program cannot receive this broadcast)
Intent.ACTION_PACKAGE_RESTARTED
- Broadcasting when external power is plugged in
Intent.ACTION_POWER_CONNECTED
- Broadcast when disconnected from external power supply
Intent.ACTION_POWER_DISCONNECTED
- Broadcasting when the device is restarted
Intent.ACTION_REBOOT
- Broadcasting after the screen is turned off
Intent.ACTION_SCREEN_OFF
- Broadcasting after the screen is turned on
Intent.ACTION_SCREEN_ON
- Broadcasting when the system is shut down
Intent.ACTION_SHUTDOWN
- Broadcasting when the time zone changes
Intent.ACTION_TIMEZONE_CHANGED
- Broadcasting when time is set
Intent.ACTION_TIME_CHANGED
- The current time has changed (normal time passes)
Intent.ACTION_TIME_TICK
//Current time changes, sent every minute, can not be received through component declaration, only through Context.registerReceiver()Method to register
- A user ID has removed the broadcast from the system
Intent.ACTION_UID_REMOVED
- Broadcasting when the device has entered the state of USB high-capacity storage
Intent.ACTION_UMS_CONNECTED
- Broadcast when the device has changed from USB bulk storage state to normal state
Intent.ACTION_UMS_DISCONNECTED
- Broadcasting when equipment wallpaper has changed
Intent.ACTION_WALLPAPER_CHANGED