Butterfly icon indicating copy to clipboard operation
Butterfly copied to clipboard

[Android] Selection of an export folder crashes

Open Wikinaut opened this issue 1 year ago • 6 comments

What happened?

Screenshot_20241110_194751.png

  • Butterfly version 2.2.1-rc.2
  • Android 14
  • Samsung A54

Selection of an export directory on internal or external memory (SD card) or Nextcloud directory folder does not work and therefore export does not work for me. I cannot access files in /Android/data/* - apparently for security reasons of Android 14.

Creation of a new folder works.

The crash happens when selecting the distinct export destination folder for Linwood Butterfly app.

Version

2.2.1 rc 2

Platform

Android

Relevant log output

see screenshot

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Wikinaut avatar Nov 10 '24 19:11 Wikinaut

Hmm seems like the path could not be found. I tested it myself with the samsung s24+ and it works. Can you try selecting the internal storage, create a documents directory in it and selecting this?

CodeDoctorDE avatar Nov 10 '24 19:11 CodeDoctorDE

I could select Screenshot_20241110_214423.png

but no pdf or png exported to there.

Selecting other directories did result in the crash.

Wikinaut avatar Nov 10 '24 19:11 Wikinaut

Hmm this could be a start. I know that the android permission system is very strict, this could be the reason you cannot open pdf files there. Which other directories did you try? You couldn't select root directories or non-local ones.

CodeDoctorDE avatar Nov 10 '24 19:11 CodeDoctorDE

I tried only subdirectories.

At some point, I found /documents/documents/documents/*.bly files.

I deleted the app and reinstalled. Same problem.

I suggest you add error messages, when export fails, as this appears to be missing.

Also, I cannot see a "save file" option.

Wikinaut avatar Nov 10 '24 20:11 Wikinaut

The thing is: This is the "Base directory" for the app. In this directory, it will create 3 directories called Documents, Packs and Templates. I don't know what you mean with /documents/documents/documents/*.bly. Which export doesn't work? Exports should open the share functionality on android where you can select where you want to save it. Usually the document gets autosaved, you can disable this functionality in settings -> behaviors -> autosave

CodeDoctorDE avatar Nov 11 '24 08:11 CodeDoctorDE

Hi, is the bug in the newest stable reproducable?

CodeDoctorDE avatar Jun 21 '25 20:06 CodeDoctorDE

got no answer, would put it in https://github.com/LinwoodDev/Butterfly/issues/569

CodeDoctorDE avatar Nov 13 '25 07:11 CodeDoctorDE