Skip to content

How does toga uses open_ File_ Dialog() on Android? #1990

Answered by mhsmith
wanglifeng95 asked this question in Q&A
Discussion options

You must be logged in to vote

Direct file access with those permissions doesn't work anymore in newer versions of Android, since they introduced "scoped storage".

Sorry about the readAllBytes error: I didn't realize that wasn't introduced until API level 33. I've edited the example to use read in a loop.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@wanglifeng95
Comment options

@mhsmith
Comment options

mhsmith Jun 19, 2023
Collaborator

Answer selected by wanglifeng95
@wanglifeng95
Comment options

@mhsmith
Comment options

mhsmith Jun 21, 2023
Collaborator

@wanglifeng95
Comment options

Comment options

You must be logged in to vote
2 replies
@freakboy3742
Comment options

@mhsmith
Comment options

mhsmith Jul 28, 2024
Collaborator

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants