Allow users to backup/restore folder...
Posted: Tue Oct 25, 2016 8:20 pm
I have an app that stores data in files in a folder called 'locations" in the "documents" folder on Android, accessed with the code below.
I am wondering what the easiest/best way is to allow users to back up and restore this folder. The user cannot navigate to this folder unless they have a rooted device, so they need a way to do this using the app itself. I would like the user to have a way to export the "locations" folder and upload it to dropbox, google drive or even send it as an email attachment.
Is there a way for the app to copy the folder to a location that the user can navigate to on an Android device without root access? It is my understanding that apps are typically limited to only writing to the apps home folder.
Thanks for any suggestions or advice,
TJ.
Code: Select all
set the defaultFolder to specialFolderPath("documents") &"/locations"
Is there a way for the app to copy the folder to a location that the user can navigate to on an Android device without root access? It is my understanding that apps are typically limited to only writing to the apps home folder.
Thanks for any suggestions or advice,
TJ.