Android Question Need to copy a text file to protected storage during development

Todd Carlton

Member
Licensed User
Longtime User
Hello community!

I am writing my first B4A application (2.83) and in reading about file storage I see that there is File.DirInternal which "is private to the application". I have an 17MB ascii data file that will be distributed with the application that I need to be able to access now for development. How would I go about copying that file from my WIN7 PC onto my mobile phone to be able to access it through the app I'm writing and have it land in the correct location for use?

Solutions are helpful. Documentation links are even more appreciated.
 

DonManfred

Expert
Licensed User
Longtime User
If you just need to READ that file; you can place it in assets and read from there.
If you need to write to that file you should copy it first to dirinternal before using the file.
 
Upvote 0
Top