android - MediaPlayer not playing sounds on DroidX -


I have some very simple sound applications on the Android Market that works on LG collaborator, Motorola Drodd and Nexus One But recently I received an e-mail from a user of Motorola Dododox, claiming that most of the voice does not work, I have exchanged some e-mail with him, claiming that the soundboard is the only application Is going on He checks twice to ensure that the media volume was not set to a minimum. I have been stumped in such a way that it will be okay on other phones, but not the DroidX I actually do not have access to one to play around for the application to run the sound is not doing anything cosmic down A code snippet may be due to the hanging, any insights is greatly appreciated.

  Public Zero Play (sample sample) {log. V (tag, "playing:" + getstring (sample.getButtonTextResId ()) "+" ("+ Sample.getSoundResId (+ +") "); If (mPlayer! = Null) {mPlayer.stop (); MPlayer.release (); } Media Player Player = Media PlayerCredit (this, sample .getSoundResId ()); MPlayer = Player; If (player! = Null) {player.setVolume (1.0f, 1.0f); Player.setOnCompletionListener (New MediaPlayer.OncompletionListener) {@Override Ending at Public Zero (Media Player MP) {mp.release (); MPlayer = null;}}); Player.start (); }}  

User resolved it by uninstalling my application and restoring it . Not sure why this problem will be fixed if any light can be shed, great.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -