You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use Android SAF for selecting the backup folder #646
For API level 19 and above, the storage access framework can be used to select folders for backup.
This will greatly increase the number of third-party sync services which could potentially be used with GnuCash Android and also increase reliability of backup/export
During my implementation, I've run into two issues:
The Intent in SAF which allows the user to select a directory (instead of a single file) is not supported by any major cloud drive providers (not even Google Drive). There might be some, but no major players
The Intent ACTION_OPEN_DOCUMENT_TREE was not introduced in API 19 with the rest of the SAF, but rather, it came in API level 21. So even more devices would need to be excluded
Both points makes the Intent ACTION_OPEN_DOCUMENT_TREE almost completely useless in the Android ecosystem at the moment.
So I will be closing this issue now, as there is no reasonable way to implement it that will be useful to users. May be worth revisiting in the future if things change with regard to the adoption of ACTION_OPEN_DOCUMENT_TREE
Instead of selecting a backup folder, a backup file would be selected instead and this would be used to store backups.
This means only the most recent backup will be kept.
In addition, export file destinations can now also be selected using SAF
Activity
codinguser commentedon Apr 12, 2017
During my implementation, I've run into two issues:
Both points makes the Intent ACTION_OPEN_DOCUMENT_TREE almost completely useless in the Android ecosystem at the moment.
So I will be closing this issue now, as there is no reasonable way to implement it that will be useful to users. May be worth revisiting in the future if things change with regard to the adoption of ACTION_OPEN_DOCUMENT_TREE
codinguser commentedon Apr 20, 2017
Instead of selecting a backup folder, a backup file would be selected instead and this would be used to store backups.
This means only the most recent backup will be kept.
In addition, export file destinations can now also be selected using SAF
Perform auto backups of all books on daily basis (with sync service) - …
Select export destination using Storage Access Framework (SAF) - #646
Restore backups from default backup location (wherever that might be)…