January 2017
Beginner to intermediate
624 pages
22h 42m
English
PhotoGallery’s background alarm works, but it is not perfect. If the user reboots the device, the alarm will be forgotten.
Apps that perform an ongoing process for the user generally need to wake themselves up after the device is booted.
You can detect when boot is completed by listening for a broadcast intent with the BOOT_COMPLETED action.
The system sends out a BOOT_COMPLETED broadcast intent whenever the device is turned on.
You can listen for it by creating and registering a standalone broadcast receiver that filters for the appropriate action.
A standalone receiver is a broadcast receiver that is declared in the manifest. Such ...
Read now
Unlock full access