Simple-File-Manager icon indicating copy to clipboard operation
Simple-File-Manager copied to clipboard

SFM to use Content Picker UI so itcan access Document Providers (Google drive, samba shares, WEBDAV, etc..)

Open aguaviva opened this issue 4 years ago • 2 comments

I think there is already support for SAF to access the SD cards, for some reason I cannot bring up the "Open from" dialog (see pic below for more details)

image

It might be because I don't have a SD card installed? That is a pity because this dialog also allows mounting other Document Providers like this one that enables accessing samba shares https://f-droid.org/en/packages/com.wa2c.android.cifsdocumentsprovider/

This is how the "Open from" dialog looks in my phone, notice the Samba and Termux dialog providers. image

As a fun fact, I am using OpenVPN + CIFS Document provider to have access to my raspberry samba shared, if only I could use SFM! That'd be awesome!

See more screenshots and documentation here: https://developer.android.com/guide/topics/providers/document-provider

I am learning Kotlin as we speak (I usually use Java) to try to implement this myself, anyway any help on how to do this myself is welcome.

aguaviva avatar Dec 19 '21 23:12 aguaviva

here is an example that shows in a few lines how to invoke the file picker to it can access samba, webdav, SD cards and other document providers

https://github.com/mateuszteteruk/blogposts-samples/blob/master/storage-access-framework/StorageAccessFrameworkDelegate.kt

aguaviva avatar Dec 23 '21 14:12 aguaviva

+1 Lack of access to Termux filesystem keeps me from switching to Simple Files from my default file manager.

mooreye avatar Mar 19 '22 11:03 mooreye