This is the code that is behaving strangely.
later this code runs
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!
B4X:
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!