ACTION_BOOT_COMPLETED constant

String const ACTION_BOOT_COMPLETED

Broadcast Action: This is broadcast once, after the user has finished booting. It can be used to perform application-specific initialization, such as installing alarms. You must hold the {@link android.Manifest.permission#RECEIVE_BOOT_COMPLETED} permission in order to receive this broadcast.

This broadcast is sent at boot by all devices (both with and without direct boot support). Upon receipt of this broadcast, the user is unlocked and both device-protected and credential-protected storage can accessed safely.

If you need to run while the user is still locked (before they've entered their lock pattern or PIN for the first time), you can listen for the {@link #ACTION_LOCKED_BOOT_COMPLETED} broadcast.

This is a protected intent that can only be sent by the system.

Implementation

static const String ACTION_BOOT_COMPLETED =
    "android.intent.action.BOOT_COMPLETED";