how to write and read file in usb storage in .net -android?

mc 5,186 Reputation points
2025-04-13T12:30:53.65+00:00

I have android pad and there is usb disk and how to read file and write file ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,068 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 74,451 Reputation points
    2025-04-17T15:35:09.89+00:00

    You use Android’s Storage Access Frameork (SAF). Basically you call the SAF file picker.

    https://developer.android.com/guide/topics/providers/document-provider

    here is a sample Maui app

    https://github.com/papnak/SafMaui

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.