using this code :
I have this error:
java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\b4j xpages amples\ePlayer\B4J\Objects\music\Scorpions - Wind Of Change.mp3
how I can open this file and play with media player
B4X:
Dim a As FileChooser
a.Initialize
a.InitialDirectory = File.DirApp
a.Title = "Choose .MP3:"
a.setExtensionFilter("Music file", Array As String("*.mp3"))
Dim fn As String = a.ShowOpen(B4XPages.GetNativeParent(Me))
If fn = "" Then Return
Log(fn)
deck1.Initialize("_deck1", fn )
I have this error:
java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\b4j xpages amples\ePlayer\B4J\Objects\music\Scorpions - Wind Of Change.mp3
how I can open this file and play with media player