AndBible / and-bible

AndBible: Bible Study
https://andbible.org
GNU General Public License v3.0
549 stars 193 forks source link

When backupping to Google Drive, file suddenly disappears #3260

Closed tuomas2 closed 3 weeks ago

tuomas2 commented 1 month ago

Is it that Google Drive does not like our .abdb suffix or what? I'm not sure if this is just for me. I think it has worked in the past.

tuomas2 commented 1 month ago

(and by backup I mean "Backup to..." and then choose Google Drive.

tuomas2 commented 3 weeks ago

I tried to change filename extension to .abdb.zip but it did not help.

tuomas2 commented 3 weeks ago

Small backups seem to work.

tuomas2 commented 3 weeks ago

Tested with ACTION_CREATE_DOCUMENT intent and it seem to work. ACTION_SEND intent fails.

@timbze do you remember if there was a reason we wanted to have also ACTION_SEND here?

tuomas2 commented 3 weeks ago

Hmm probably idea is to also allow sharing via bluetooth etc.

tuomas2 commented 3 weeks ago

Intents are incompatible how they should be used. ACTION_CREATE_DOCUMENT requires writing file to output stream but ACTION_SEND will fail if that is done (with Google Drive). And it is not possible to distinquish which intent was used from the result... :-/

tuomas2 commented 3 weeks ago

I guess we need to fall back to original implementation where it was asked from user if he wants to save (to a local file) or share...