-
-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please support the open folder intent #84
Comments
goal:
my proposal: use this: https://stackoverflow.com/questions/17165972/android-how-to-open-a-specific-folder-via-intent-and-show-its-content-in-a-file
[Update 2017-10-09] fixed typo in data. need data=file:///path/to/directory/ instead of data=file:/path/to/directory/ |
picker and viewer are 2 different things, I will get there someday |
thanks a lot |
works great in k3b/APhotoManager#99 . thanks a lot |
Can you also support getting the file path from |
sorry but no, that intent is a custom one belonging to a specific app, not a widely used one |
Hi,
I think we can agree that opening a file manager with a specific folder (to
view the content of said folder) is a worthwhile goal and a good feature to
have, right? That's why this issue was resolved in the first place. However
that commit no longer works if the calling application targets API 24. An
app targeting api 24 can not but file:// uris into the data of an intent.
That why my proposal was to put the desired file path into an EXTRA field
instead. If you prefer that I'm happy to call that field
'prg.simplemobiletool.filemanager.extra.path' or what ever. However
openintents is not a vendor specific thing but an attempt to *standardized*
those exact intent that are not covered by basic android.
|
I will check someday how should it be handled, for now I dont want to add custom intent handling |
I donot like app specific tags, too but at least it is documented which is much more than most other custom tags. I will add it to my apps as last fallback-try if nothing else works. Maybe we should create a simple android lib at github and publish at jcenter/mavencentrals for the task "open directory folder" with client-app and service-app code. then @tibbi can add something linke this to Simple-File-Manager:
|
ShareCompat (support.v4) uses setStream(uri) which is really an Intent.ACTION_SEND with a putExtra(Intent.EXTRA_STREAM, uri). |
Applications like Syncthing require it to open folders.
See also syncthing/syncthing-android#838
The text was updated successfully, but these errors were encountered: