4.2 Summary of Common Systems Broadcasting

Posted by CircularStopSign on Wed, 22 May 2019 19:19:18 +0200

Click here to enter: Fast Construction of APP Series Catalog Map from Zero
Click here to enter: UI Programming Series Directory Map
Click here to enter: Four Component Series Catalog Map
Click here to enter: Data Network and Thread Series Directory Map

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;
//Battery charging status, charge level changes, can not receive this broadcast through the formation declaration, only registered through Context.registerReceiver()
  • Low battery power
<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;
// The android system broadcasts the Action message when the user presses the power button, long or short (whether or not it jumps out of the dialog) to lock the screen.
  • Broadcast issued when the device's current settings are changed
Intent.ACTION_CONFIGURATION_CHANGED;
//Included changes: interface language, device orientation
  • 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;
//This broadcast can only be used by the system, other APP s are not available?
  • Broadcasting from insufficient to sufficient device memory
Intent.ACTION_DEVICE_STORAGE_OK;
// This broadcast can only be used by the system, other APP s are not available?
  • 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: Extended Media (Extension Card) has been pulled out of SD card slot, but mount point has not yet been released (unmount)
  • 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;
//The user wants to remove the extension medium (unplug the extension card).
  • Broadcast issued when the SD card is inserted and installed (identified) correctly
Intent.ACTION_MEDIA_MOUNTED;
//Broadcast: Extended media is inserted and mounted.
  • External storage devices have been removed and this broadcast will be sent whether or not they are uninstalled correctly.
Intent.ACTION_MEDIA_REMOVED;
// Broadcasting: Expansion 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;
//Broadcast: A new 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 newly installed package program cannot receive this broadcast)
  • 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;
//The user has cleared the data of a package, including the package name (the clearer cannot receive the broadcast)
  • 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;
//An existing application package has been removed from the device, including the package name (the package program being installed cannot receive this broadcast)
  • 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;

Click here to enter: GitHub Open Source Project "Love Reading" The following is the effect diagram of "Love Reading":


Contact information:

Jane book: WillFlow
CSDN: WillFlow
Wechat Public Number: WillFlow

Topics: Mobile Android Java Programming