How to write to a file in Android #10325
-
Hello, Is there a way to write to a file that the user selects (through the plugin-dialog's save() function) on Android? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 ( Maybe this helps someone in the future. |
Beta Was this translation helpful? Give feedback.
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.