1

How can I make an app respond to ACTION_SCREEN_ON broadcasts even when the app is off?

I have been reading about alarms and IntentService but I am not sure what the best practice is.

I am trying to make an app that takes pictures whenever the screen is unlocked.

scottysseus
  • 1,922
  • 3
  • 25
  • 50

1 Answers1

0

Register your BroadcastReceiver in a service.

From Broadcast Receiver within a Service

Community
  • 1
  • 1
r2DoesInc
  • 3,759
  • 3
  • 29
  • 60