java - How to load and save files in Android? -
I have to load "configuration" type files for my program in Android, both of them. NLP Library I am still new to Android, and I have trouble finding folders to keep files, so I can access them when activity starts.
I also need to create / save / load a file type for my program is specific, and I do not know where to place it, I can find all of those here that have input strings Using the getAssetManager () function to fetch, but I definitely need the file object so that they can load into my already existing desktop software code. Use again (as well as libraries they need anyway)
I have seen people using the "res / raw" folder, though ADT did not make this project a "raw" file - So I'm not sure what to do there.
Here's how I usually start the software in the desktop version, but these files need to be brought in the Android environment:
Brain Start (new file ("memburbic core"), new file ("en_pos_maxent.bin"), new file ("en_sent.bin")); Core = brain.getInterpreter (). GetCore ();
The memoric.ccore file can be generated, but I need to know how to do this.
Thank you very much for your time, feel free to direct me to other resources if you think this question is inadequate.
TLRR; How can I load "static" files for the software's work (need to be involved with the software), and how to create / load / save "private" files in a reasonable area of the device?
"raw" -folder You can create it automatically, so check it, which shows that Android How to handle files in:
Comments
Post a Comment