Wednesday, December 12, 2012

[android-developers] SecurityException thown from MediaPlayer.prepare()?

Hello,

I got a crash logged through ACRA which looks like MediaPlayer.prepare() threw SecurityException.  I'm not sure how to interpret this - as far as I can tell, prepare() is not documented to throw that exception type.

However, the previous line in my source calls setDataSource() which can throw SecurityException, and the application has been processed by Proguard.  Is it possible that Proguard causes this kind of inaccuracy and the exception was actually thrown by setDataSource()?

Even if so, I'm still not sure what the exception could mean.  The data source is set to a file stored in the assets/ directory, possibly of a different package.  The crash happened on 4.0.3 (the app has been tested rather extensively on N7 with 4.1 and 4.2, and is mostly  used on 4.x IIRC).

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment