Missing Document Providers using Intent.ActionCreateDocument

246 views Asked by At

When I use Intent.ActionOpenDocument as the activity the resulting picker shows all available document providers. When I use Intent.ActionCreateDocument the resulting picker shows a limited subset of document providers. Does anyone know of a method to have the Intent.ActionCreateDocument picker show all document providers?

ActionOpenDocument ActionCreateDocument

1

There are 1 answers

1
Leo Zhu On BEST ANSWER

When OneDrive app is installed it support ACTION_OPEN_DOCUMENT Intent (Android Storage Access Framework (SAF)), but unfortunately it does not support ACTION_CREATE_DOCUMENT intent from the same SAF.Thus we can implement work-around: 1st invoke ACTION_SEND and latter ACTION_OPEN_DOCUMENT.

But this means bad user experience for end user when interacting with OneDrive comparing to doing same action with Google Drive (which support both open and create intents.) As result user would need to select file twice using OneDrive and only once if he use GDrive.