Accessing files with other apps

When I want to upload a file using Firefox or another app, I have the option to “BROWSE FILES IN OTHER APPS” like Drive, Photos, a file manager program, Dropbox - but no Nextcloud option. Currently I have to save a file onto my phone then use the file manager option to upload it. I’m wondering what this feature is even called and if there’s an open request or anything to add it.

1 Like

I think to do that a “FileProvider” will have to be defined.

https://developer.android.com/reference/androidx/core/content/FileProvider

Nextcloud does have FileProvider used a few times and in the manifest but it doesn’t show up as an app to choose a file from.

This other app does

I think it needs android.intent.action.PICK or android.intent.action.GET_CONTENT in AndroidManifest.xml - likely some other code to make this actually work

Probably just talking to myself, but adding this to AndroidManifest.xml did make it so Nextcloud shows up as a file picker. Just need to figure out what else I need to add to make it actually work and share a file, probably a FileProvider thing

            <intent-filter>
                <action android:name="android.intent.action.GET_CONTENT"/>
                <data android:mimeType="*/*"/>

                <category android:name="android.intent.category.OPENABLE"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>