Skip to content

How to write to a file in Android #10325

Discussion options

You must be logged in to vote

Just an update. I haven't discovered yet how to allow users to select a path to write the file, because tauri's dialog plugin doesn't work on Android. But I was able to write to a file (i.e. /storage/emulated/0/Documents/file.txt) using Rust's std library (std::fs::write).

Maybe this helps someone in the future.

Replies: 1 comment 2 replies

Comment options

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

@owjs3901
Comment options

Answer selected by charlesschaefer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants