martial
martial

Reputation: 136

Write file on Android with Onedrive and StorageAccessFramework

I use Storage Access Framework (SAF) on Android with OneDrive. Reading a file works fine, but when i try to save file, it doesn't work (i get a "Bad File Number" issue)

Using SAF with GoogleDrive in the same way works perfectly.

Is this because OneDrive implementation of SAF doesn't support writing files, or something like that?

Thanks a lot

Upvotes: 2

Views: 1256

Answers (1)

Peter Nied
Peter Nied

Reputation: 1875

OneDrive for Android only supports read operations via the Storage Access Framework in Android.

If you would like to save files to OneDrive, there is a picker & saver interface avaliable that is avaliable. See OneDrive-Picker-Android on github for more information.

Upvotes: 1

Related Questions