Skip to content Skip to sidebar Skip to footer

Xamarin.Forms Android FileProvider: GrantWriteUriPermission Not Always Working

I want to edit files from the internal storage of my Xamarin.Forms Android app in third party apps, for example fill out form elements in a PDF file or edit a .docx file. With my i

Solution 1:

After further investigation I can confirm that this seems to be an issue of the app receiving my intent (e.g. Microsoft Word).

When I start a EDIT intent instead of a VIEW intent as in

Intent intent = new Intent(Intent.ActionEdit);

the file is opened with write access in certain apps (xodo pdf, google docs) but read-only in other apps (Adobe PDF Reader, Microsoft Word) so I'm assuming these apps do not implement receiving an edit intent correctly.


Post a Comment for "Xamarin.Forms Android FileProvider: GrantWriteUriPermission Not Always Working"