You can also simply increase the volume of the device:
AudioManager am = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE); int previousVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC); am.setStreamVolume(AudioManager.STREAM_MUSIC, 10, 0); {... do your things ... } am.setStreamVolume(AudioManager.STREAM_MUSIC, previousVolume, 0);
In my case, it was easy to fix, and it worked with the rest of the application.
Alberto m
source share