Simple question:
I'm using MediaPlayer
to play mp3 files (they play just fine), but also i need support for WMA files. I know some devices support it, but not all of them, but i want some way where I'm sure it will play in any device. Is there anything i can implement or do so i can play Mp3 and WMA files?
right now i got two test buttons, with the same code, one the source is an Mp3 (works) the other same code with a wma (fails)
MediaPlayer mp = MediaPlayer.create(this, Uri.fromFile(source));
mp.start(); // no need to call prepare(); create() does that for you
Thanks. Alex