Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Feature request] Add an option to "Browse" file system for a file to import to user filter #120
@TPS thanks for the link!
It is easy to integrate with this app indeed:
But that's in case if this file manager is already installed. Bundling their code into our app seems to be an overkill.
We may also use this component:
Or just implement the file browser by ourselves:
That's really weird Android still does not provide a standard component for this.
You're welcome, of course. Why don't you all provide the correct intents, anyway, if/when implementing the above code, so that those of us who prefer our own installed file browser can use it, maybe toggled via a new setting?
I think the closest available is detailed starting from http://developer.android.com/guide/topics/providers/document-provider.html
This intent is not standard, it is specific to the OI File manager. We can send it or not, it just does not solve the issue. For instance, what if I don't have a file manager app at all?
Too much abstractions there. What we all need is simple native "OpenFileDialog" component.
I'm not sure.… Reading through https://github.com/openintents/filemanager/blob/master/FileManager/AndroidManifest.xml, this relevant-looking section seems generic enough:
<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="file" /> </intent-filter>
Other apps that implement an "Open File" mechanism (mostly office programs — Google Docs & related, OfficeSuite, PDFMax, &c) seem to call that intent, I think, & the Android (4.4) system responds with a dialog that gives whatever file managers as options: