I've been working on an app that plays MP3 files and have started with out 
with the lowest supported android version and working upward toward JB.

For some reason the MediaPlayer starts generating an error in Android 4.2 
when it has been working just fine until now.
Nobody seems to know what has changed or how to work around it. The only 
suggestions I've found so far are to do with permissions, but unless they 
have changed radically for external storage, the MediaPlayer should have 
permission to read the files.

Here is some relevant information. Notice there is no stack trace, just a 
message printed out.
(I've included some of my debugging output for reference).

02-14 12:24:05.210: I/MessageListFragment(29567): *** FILE [exists:true]: 
file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V20130115000008.mp3
02-14 12:24:06.001: D/MessageListFragment(29567): Local data file: id=1, 
rid=V20130115000008, 
uri=file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V20130115000008.mp3
02-14 12:24:06.001: D/MessageListFragment(29567): Preparing to play: 
file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V20130115000008.mp3
02-14 12:24:06.011: E/MediaPlayer(29567): error (1, -2147483648)
02-14 12:24:06.051: E/MediaPlayer(29567): Error (1,-2147483648)
02-14 12:24:06.051: E/MessageListFragment(29567): what: 
MediaPlayer.MEDIA_ERROR_UNKNOWN

So far I have seen this on both a Nexus 7 and a Nexus 4 running JB 4.2.1, 
it seems to work fine for the prior versions that I've been able to test 
(4.0.4, 4.1.1).




-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to