The first app I built had an issue that the audio controls on the device wouldn't work unless a sound was actually playing. Found a really simple work around.
Add this call to the onCreate method in the activity.
setVolumeControlStream(AudioManager.STREAM_MUSIC);
Pretty simple little fix.
No comments:
Post a Comment