Caitlyn Wiley
Caitlyn Wiley

Reputation: 54

How to listen for power off events in android, excluding restarts

I'm looking for a way to listen for a device being powered off in android, but I don't want to include device restarts. I found Intent.ACTION_SHUTDOWN which looked useful but that includes reboots, since the device is technically powered off then back on. Is there a way to take action when a device is powered off but not when it's restarted?

Upvotes: 0

Views: 895

Answers (0)

Related Questions