I want to play a .mp3 file.
B4A compiles with no problem, but when I run the apk on my device I see:
Error occured
An error has occured in sub:
main_play(java line: 553)
java.io.FileNotFoundException:
name.mp3
Continue?
The message is clear, I've added the .mp3 file by clicking on files (between modules and logs) but nothing has changed...
B4X:
Sub Button1_Click
MediaPlayer1.Initialize
MediaPlayer1.Load(File.DirAssets, "name.mp3")
MediaPlayer1.Play
End Sub
Error occured
An error has occured in sub:
main_play(java line: 553)
java.io.FileNotFoundException:
name.mp3
Continue?
The message is clear, I've added the .mp3 file by clicking on files (between modules and logs) but nothing has changed...