I seem to have the opposite problem that a lot of other developers
have encountered when playing video. I'm using a VideoView in my
layout, and have noticed that the device never goes to sleep while
it's playing. This particular video is a perpetually looped resource,
so I'd like the screen to turn off normally after a period of
inactivity.

So far, I've tried setting android:keepScreenOn="false" on the
VideoView's layout, and also tried calling
MediaPlayer.setScreenOnWhilePlaying(false) on the view's MediaPlayer.
No luck. Has anyone been able to make this work? Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to