Skip to content Skip to sidebar Skip to footer

Mediaplayer Plays The Music Files Only In Debug Mode ( Android )

I have written an Android application ( in eclipse) that plays a music file as follows: MediaPlayer mediaPlayer = new MediaPlayer(); try { mediaPlayer.

Solution 1:

Put a log before "mediaPlayer.setDataSource(fileName)" and check if you are getting a valid fileName in release mode.


Post a Comment for "Mediaplayer Plays The Music Files Only In Debug Mode ( Android )"