On 2 Feb., 09:57, roguel6 <[email protected]> wrote: > I am having the same issue with 2.2.2. The method getCurrentPosition() in > MediaPlayer doesn't return the correct value. It is lower than real value. I > have tried the same code in 2.1 and that works perfectly. Any fix for this?
At least nothing official I could find so far. There are some Issues related with wrong positions and lengths (i.e. seekTo and getDuration as well), like 2259, 8154, 12838, and 13227, but so far it doesn't seem to be "starred enough". The trouble seems to occur if the files use VBR or sampling rates over 44,100 (also below?). It also seems to be the case for Ogg Vorbis (Issue 11590). btw, for the original post: Using a handler every second might be too slow. The handler is executed in a loop, so it won't be executed exactly each second but with a little delay, depending on the device's speed and other tasks done. So after a while, the display might skip from x:00(,9) to x:02(,0). -- 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

