July 2015
Beginner to intermediate
600 pages
18h 59m
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 usually 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