Use MediaPlayer.setScreenOnWhilePlaying(), or use a VideoView instead of rolling your own.
On Wed, Apr 1, 2009 at 10:33 PM, manoj <manojkumar.m...@gmail.com> wrote: > > Hi, > > I have written a video player app. Its working fine, but the problem > is the screen is going to in sleep mode after playing some time. When > I click on "Menu" button on the device, then only it wakes up. > > How can I solve this? > > Thanks, > Manoj. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---