I had MediaPlayer.creat(<resource id>) throw an IOException recently.
Note that it's signature doesn't say that it's even possible for it to throw
an IOException...

01-06 07:14:05.191: DEBUG/MediaPlayer(183): java.io.IOException: Prepare
failed.: status=0x1
01-06 07:14:05.191: DEBUG/MediaPlayer(183):     at
android.media.MediaPlayer.prepare(Native Method)
01-06 07:14:05.191: DEBUG/MediaPlayer(183):     at
android.media.MediaPlayer.create(MediaPlayer.java:644)
01-06 07:14:05.191: DEBUG/MediaPlayer(183):     at
com.casadelgato.metronome.MainScreen.onCreate(MainScreen.java:413)

I've been unable to find out what "status=0x1" means.
The prepare failed - buy why?

I was running in the Emulator, and the only reason I noticed this is because
the sound didn't resume playing after "rotating" the device.
The exception was logged in logcat.

-- 
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

Reply via email to