On Apr 25, 3:48 pm, henrik <henrik.aron...@gmail.com> wrote: > On 25 apr, 12:08, henrik <henrik.aron...@gmail.com> wrote: > > > I have a problem with MediaPlayer on my HTC Hero. When I set it to > > decrypt & play a local file in the background, it starts skipping > > after a minute or two, even though I have aquired the > > PARTIAL_WAKE_LOCK. This only happens when the phone is running on > > battery: I'm unable to reproduce this with the USB cable plugged in. > > In addition, this only happens when I leave the phone to play. If I'm > > using another app actively, the music never skips. > > The weird thing is, the problem goes away if I use > SCREEN_DIM_WAKE_LOCK instead. But I really don't want to drain my > users' batteries needlessly.
That looks somewhat similar to the problem I described at: http://groups.google.com/group/android-developers/browse_thread/thread/d5871aedea82d915/d567fecbfda6235f Seems as if HTC are applying some very aggressive power saving when the screen is turned off. Unfortunately, I do not yet have a solution (there must be one [most likely undocumented] as the native phone application is not affected). Regards, Thilo -- 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