How can I access File.DirAssets from a jave library ?
I use the following code with Assets = True :
and get the following error:
when using False - it works (for File.DirRootExternal).
I use the following code with Assets = True :
B4X:
if(Assets)
st = File.Combine(File.getDirAssets(), "WMMC.COF") ;
else
st = File.Combine(File.getDirRootExternal() + "/Magnetics", "WMMC.COF") ;
and get the following error:
Java.io.FileNotFoundException /AssetsDir/WMMC.COF (no such file or directory)
when using False - it works (for File.DirRootExternal).
Last edited: