I know it is probably something dumb I am doing wrong but I am trying to convert all my code that is using runtimepermissions.GetSafeDirDefaultExternal
to use xui.defaultfolder (reason for the convert is so I can get this app to work on B4i)
Now they are suppose to point to the same thing but when I print them out
The above seems like they should be the same location but when I use File.Exists(xui.DefaultFolder, <somefile name>) I am told it does not exists
But if I use File.Exists(rp.GetSafeDirDefaultExternal(""), <somefile name>) it says the file exist.
How do I swap from using rp.getsafedirdefaultexternal to xui.defaultfolder but yet find the files properly
BobVal
to use xui.defaultfolder (reason for the convert is so I can get this app to work on B4i)
Now they are suppose to point to the same thing but when I print them out
B4X:
XUI.DefaultFolder[/data/user/0/com.BOBs.BBsViewer/files]
RuntimePermissions.GetSafeDirDefaultExternal[/storage/emulated/0/Android/data/com.BOBs.BBsViewer/files]
But if I use File.Exists(rp.GetSafeDirDefaultExternal(""), <somefile name>) it says the file exist.
How do I swap from using rp.getsafedirdefaultexternal to xui.defaultfolder but yet find the files properly
BobVal