2

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

JoelC
  • 3,664
  • 9
  • 33
  • 38
martial
  • 136
  • 2
  • 8
  • It sounds like the OneDrive SAF implementation might be returning an improper values. If you could reach out to me with a more specific details/example about what is wrong can investigate the experience. – Peter Nied Mar 11 '15 at 16:59

1 Answers1

1

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.

Peter Nied
  • 1,820
  • 1
  • 13
  • 22
  • 1
    Thanks... Any chance it will work in the future? The point of SAF is to avoid implementing the api picker of each cloud providers... We need to be able to write file with it. – martial Mar 12 '15 at 07:43