File creation

derez

Expert
Licensed User
Longtime User
I'm trying to create a file in the sdcard using textwriter.initialize, but get an error about permissions, probably it is read only.

Does anyone know how to enable file creating on the sdcard of an emulator ?
Using push command I can send files to a directory but not by the code.
I don't know if this problem happens with a real device.
 

derez

Expert
Licensed User
Longtime User
I made the folders " manually" using andexplorer, and use them for User files:
B4X:
tr.Initialize(File.OpenInput("sdcard\Nivut\User", name))

I can read the directory and files but can't create them.

Must I use the File.DirRootExternal folder ?
 
Upvote 0
Top