My CodenameOne app is intended for iOS and I want that some private app files are automatically backupped, like this:
I would like to know if this kind of code:
public void writeFile() throws IOException {
try(OutputStream os = Storage.getInstance().createOutputStream("/"+APP_DATA_FILE_NAME);)
{
os.write(appDataText.getBytes("UTF-8"));
os.flush();
os.close();
} catch(IOException err) {
System.out.println("write err");
}
}
is able to leverage the auto-backup feature, that is, the folder the file is written into is backupped.
Thanks in advance