Playing background sound loop
So I am developing a game and I want it to have background sound and sound in reaction to touch events. But taking it one step at a time I would really like to know how to play my mp3 in the background of my game?
You will either want to use MediaPlayer or SoundPool or both! With MediaPlayer you will want to use it for longer sounds such as background music that is played throughout your game. SoundPool is used more for things such as sound effects (shorter sounds that are played when something in your game occurs). There are many examples in the Android documentation on how to use both of these.
android crashes after using setMyLocationEnabled on mapcallback on actual device
how to maintain session using Shared Preferences
Which action is broadcasted on removing Ethernet connection through otg in android
Is it possible to use two Bluetooth adapters in Android?
Where do images need to be stored in and Android app?
How can I make drawText() to position accurately?
Deploy and access to a Sqlite database [duplicate]
How to get friend list of google plus using latest google plus API in 9.0.2 android
Execution failed':app:transformClassesWithDexForDebug'.internal.ExecException: Process 'java'' finished with non-zero exit value 1
Back-end structure for a specific described mobile application?
How to allow <input type=“file”> to accept only image files for image upload
Android - Open Facebook app from link in email
Unable to play video url to Styled Media Receiver Chromecast
cordova application not working in android emulator
Cannot find symbol variable mapquest_osm