Android folder open dialog returning unusable URI
Checklist
- I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
- This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
While experimenting with the Fysion-tutorials repo from Andy's YouTube series, I attempted to install it on Android (before editing any of the code). Prior to folder selection, the parent directory is displayed as "sdcard". It successfully opens the folder picker and even allows me to create a dedicated folder on the file system for my projects, but when I select this folder as the parent directory, the name of the parent folder displays as "primary%3AFysion". Further, when I click submit, I receive an error dialog saying "operation not supported for this URI". It seems as if there is a string parsing error happening somewhere in the ShowFolderOpen dialog?
How to reproduce
- git clone https://github.com/fynelabs/Fysion-tutorials.git
- fyne package -os android
- connect android device via ADB
- fyne install -os android
- open installed app on Android device
- select "Create New Project"
- name the project
- attempt to use default parent directory "sdcard" or select a different folder
- click submit, note error
Screenshots
Example code
error seems to be generated in gui.go:
func (g *gui) openProjectDialog() {
dialog.ShowFolderOpen(func(dir fyne.ListableURI, err error) {
if err != nil {
dialog.ShowError(err, g.win)
return
}
if dir == nil {
return
}
g.openProject(dir)
}, g.win)
}Fyne version
2.4.1
Go compiler version
1.21.2
Operating system and version
Windows 10
Additional Information
No response
Source: fyne-io/fyne