The code below works ALL OF TIME when compiled in Debug
------------------------------
MyPath = "/mnt/sdcard/Hyper/MyPics"
If File.Exists(MyPath, "") = False Then
File.MakeDir("/mnt/sdcard/Hyper/MyPics","")
End If
' Check if phone20.dbc exists...
If File.Exists("/mnt/sdcard/Hyper/Data", "phone20.dbc") = False Then
File.Copy(File.DirAssets, "phone20.dbc", "/mnt/sdcard/Hyper/Data", "phone20.dbc")
Msgbox("Created phone20.dbc","")
End If
-----------------------------
It works SOME OF TIME when complied in release mode. It was working in release mode in the morning and later in the day I keep getting an error that the database was in read only mode. I checked the file permissions and they were -rw. So, I rebooted the phone - just in case the database had locked up for some reason - got the same error. Also, some of the time when compiled in release mode the Folders are created and other times not, don't have a clue why. But, it always works - with out error - when compiled in debug mode.