#How to Access Files in Android

2 messages · Page 1 of 1 (latest)

sick willow
#

I'm relatively new to both Android development and Tauri, and I'm currently working on a project where I need to access files on an Android device using Tauri.

Specifically, I'm looking for help on how to integrate file access functionality into my Tauri application targeting Android. I need to be able to read and write files stored locally on the device.

If anyone has experience with this or can point me in the right direction, I would greatly appreciate it. Any tutorials, code snippets, or documentation that you could share would be incredibly helpful.

Here are a few specific questions I have:

  1. How do I request permission to access files on an Android device within a Tauri application?
  2. What are the best practices for handling file I/O operations in Tauri targeting Android?
  3. Are there any Tauri-specific considerations or APIs that I need to be aware of when working with file access on Android?
naive egret
#

Hey, i am currently working with files in an tauri app for android. The whole « fs » plugin is available and his doc seems to be up to date : https://beta.tauri.app/references/v2/js/fs/
This plugins allows you to handle files and directories.
However in order to let the user interact we must use the dialog plugin. Unfortunatly, it seems to be not implemented yet.
I saw that there was already an discussion about it.

https://discord.com/channels/616186924390023171/1227920318103027833

Tauri

The cross-platform app building toolkit