Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Selection of an export folder crashes #758

Open
1 task done
Wikinaut opened this issue Nov 10, 2024 · 5 comments
Open
1 task done

[Android] Selection of an export folder crashes #758

Wikinaut opened this issue Nov 10, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Wikinaut
Copy link

Wikinaut commented Nov 10, 2024

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

  • I agree to follow this project's Code of Conduct
@Wikinaut Wikinaut added the bug Something isn't working label Nov 10, 2024
@github-project-automation github-project-automation bot moved this to 📕 Todo in Butterfly Nov 10, 2024
@CodeDoctorDE
Copy link
Member

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?

@Wikinaut
Copy link
Author

I could select Screenshot_20241110_214423.png

but no pdf or png exported to there.

Selecting other directories did result in the crash.

@CodeDoctorDE
Copy link
Member

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.

@Wikinaut
Copy link
Author

Wikinaut commented Nov 10, 2024

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.

@CodeDoctorDE
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📕 Todo
Development

No branches or pull requests

2 participants