Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
player1.Initialize("player")
sources.Initialize
Bmp.Initialize(File.DirAssets, "android48.png")
CurrentDir=File.DirRootExternal
CurrentDir="/storage/6636-6366/videos"
End If
later this code runs
B4X:
Dim fd As FileDialog
fd.FastScroll = True
fd.ShowOnlyFolders = False
fd.FilePath = CurrentDir
ret = fd.Show("B4A File Dialog", "Yes", "No", "Maybe", Bmp)
CurrentDir=fd.FilePath
VideoName=fd.ChosenName
notice in activity create, I assign CurrentDir a value twice in consecutive lines. So the first assignment
shouldn't matter. But it does. If I comment out CurrentDir=File.DirRootExternal, the file dialog
doesn't work. It go around in circles, and never let's me chose a file. But if it's in, the file dialog works correctly. Very strange!
Use File-Export as zip to export it. DO NOT Zip the hole projectfolder (including Object folder)
You can remove the hole objects folder from the zip. It is not needed...
here it is with the export. I didn't know about that. you need to create a dir with the same name as mine, with video files in it, on the sdcard, for it to work I'm going to bed now so I'll check this thread tomorrow