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

Add NewFolderSave dialog for creating new folder #3907

Open
2 tasks done
xypwn opened this issue May 23, 2023 · 3 comments
Open
2 tasks done

Add NewFolderSave dialog for creating new folder #3907

xypwn opened this issue May 23, 2023 · 3 comments
Labels
enhancement New feature or request FileDialog Improvements to the builtin file dialogs

Comments

@xypwn
Copy link

xypwn commented May 23, 2023

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

I am writing a project where I would like to save multiple files to a user-accessible location on Android without requiring a dialog for each saved file.

Is it possible to construct a solution with the existing API?

No

Describe the solution you'd like to see.

I'm not very familiar with Android APIs, but I think the relevant part of the code is found in GoNativeActivity.java. The current issue is when a folder is opened, users are only allowed to read from this folder. This is what we would expect when using NewFolderOpen, but we could think about adding a function like NewFolderOpenForWriting (we can discuss the exact name). This new function would allow apps to create their own folders where they can write files into the shared storage without needing the user to do anything except select the folder once.

@xypwn xypwn changed the title NewFolderOpen with write permissions NewFolderOpen with write permissions (Android, cross-platform API proposal) May 23, 2023
@xypwn
Copy link
Author

xypwn commented May 23, 2023

Andy suggested the name NewFolderSave on Discord, which would be a name that is more consistent with the current API. It could give the callback function a listable URI, which can be checked for persistent writability on subsequent uses. This would be very similar to NewFolderOpen.

@Jacalz Jacalz added enhancement New feature or request FileDialog Improvements to the builtin file dialogs labels May 24, 2023
@Jacalz
Copy link
Member

Jacalz commented May 24, 2023

This is a great idea (using the NewFolderSave naming). Thanks for sharing 👍

@MatejMagat305

This comment was marked as off-topic.

@Jacalz Jacalz changed the title NewFolderOpen with write permissions (Android, cross-platform API proposal) Add NewFolderSave dialog for creating new folder May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request FileDialog Improvements to the builtin file dialogs
Projects
None yet
Development

No branches or pull requests

3 participants