Big bug playing ogg files in Android 2.3 (a.k.a Stop the Android Audio Madness!)

by k7k0 » Sat, 12 Mar 2011 05:18:50 GMT

Sponsored Links
 I'm having a big problem with Android 2.3, the MediaPlayer API seems broken 
with most .ogg files.

If you grab a mono or non-44khz ogg file, after loading it into the 
MediaPlayer it reports ridiculous lengths using the getDuration() API. Is 
not just bad information, you can't use the seekTo API!. Try to download 
this file to your sdcard and play it using the Music Player app in a 2.3 
emulator, the file is 18 seconds length, it reports only 8 seconds!.

I've filed a bug here 
If you are an audio-related app developer please star it.

We switched to ogg to avoid the gaps of the mp3 files. *This worked since 
android 1.1*, I don't know what's happening to android audio API's, I 
thought they couldn't make it even worse!


Other Threads

1. webkit, javascript, onclick, MotionEvent, event handlers not firing

In my JavaScript code I set 'onclick' handlers on HTML DOM elements.
In Froyo these handlers always 'fire' when their elements are clicked
w/i WebView, as expected.
In pre-Froyo, including 2.1 I am confronted by 'magic' :-(
Sometimes the handlers are activated and they successfully log to as well as call Java callbacks,
sometimes NOT. For instance, on 1st entry to an Activity that displays
an HTML+JS document,
the doc's elements react to clicks, then after playing with the app
some more and returning to the Activity
the handlers no longer respond. Obviously, the WebView/WebKit/etc.
combo is in a different state
then originally, but WHAT is going on? What stops the handlers from
running in the new state?

These phenomena are, luckily, absent in Froyo so something got fixed
but Froyo is not yet out there enough.

Has anybody experienced this {*filter*} WebView/JS behavior with unstable
'onclick' functionality?


2. How to Buy Android Apps in Countries th at Don鈥檛 Support Paids Apps

buying paid apps without using market enabler..check this out..

"Indonesian Android Community [id-android]" 

3. Cannot play MPEG4 video stream on Android SDK 1.6

4. How to custom build steps in Eclipse ADT plug in.

5. Where is source code (or git file) for ContactsContract.QuickContact

6. Radar View

7. Permanent socket connection drains battery