Skip to content

Use Android SAF for selecting the backup folder #646

Closed

Description

@codinguser

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

Activity

  1. added this to the v2.2.0 milestone on Jan 23, 2017
  2. self-assigned this
    on Jan 23, 2017
  3. codinguser commented on Apr 12, 2017

    @codinguser
    OwnerAuthor

    During my implementation, I've run into two issues:

    1. 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
    2. 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

  4. removed this from the v2.2.0 milestone on Apr 12, 2017
  5. added this to the v2.2.0 milestone on Apr 20, 2017
  6. codinguser commented on Apr 20, 2017

    @codinguser
    OwnerAuthor

    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

  7. added 3 commits that reference this issue on Apr 20, 2017
    55c8f18
    8ad3e04
    97eb433
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions