Is it possible to play an MP3 file in Android as system sound?
My problem is that I am developing an application that should play different SMS tones when the application receives an SMS from a particular phonenumber.
In the way it is working right now, I'm using a combination of MediPlayer
, AssetFileDescriptor
and AudioManager
to play the MP3 file, and it's working OK except for one big bug: if user has lowered the media volume to 0, the received sms will be missed because the MP3 cannot be heard.
So, it is possible to get a MP3 file to play using the system sound player? Or get the mediaplayer to use the system sound volume settings?