mesh
mesh

Reputation: 937

play video screen off

I wish to play video when the device screen is off. what could be the strategy here.

I have found out that i may need a receiver which handles intent
ACTION_SCREEN_OFF and ACTION_SCREEN_ON

If the screen is off, i would need to acquire a wakelock like this.

wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_LOCK|ACQUIRE_CAUSES_WAKEUP, "my tag");   
wl.acquire();

Then probably play the video.

Can someone throw more light on this.

regards

Upvotes: 1

Views: 668

Answers (1)

Ezeke
Ezeke

Reputation: 11

Uninstall the update. It worked for me.

Upvotes: 1

Related Questions