Android Question Adding a text file to app package - Android

Mihai Rainer Jr.

Member
Licensed User
Is there any possibility to add a text file to the package, that can be found in File.DirInternals? I'd like to add a text file with help and other information, that will be installed with the package.
 

klaus

Expert
Licensed User
Longtime User
Add it to Files folder of your project in the Files Manager Tab in the IDE.
Then you can access it in your code with File.DirAssets directory.
Be aware that the file, in the File.DirAssets folder, is read only.
If you want to modify it in your code, you must copy it to File.DirInternal in the code.
 
Upvote 0

Mihai Rainer Jr.

Member
Licensed User
OK, thanks. I am just copying (if not exists) some of the files to DirInternal on application start to make them available for edit. It is working fine.
 
Upvote 0
Top