Android Question Calling Sound file in my app

MarcioCC

Member
Licensed User
Longtime User
Good morning guys, How do you retrieve a file. wav or mp3 in my application. A u wont made you hit or miss a problem that the application send a sound. How to do this ??
 

mangojack

Expert
Licensed User
Longtime User
Add a sound to your assets , then ..
B4X:
'play sound
   Dim MP As MediaPlayer
   MP.Initialize
   MP.Load(File.DirAssets, "mysound.mp3")
   MP.Play
 
Upvote 0
Top