Skip to content
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

Handling of content:// URIs #126

Closed
1 of 3 tasks
gsantner opened this issue Nov 11, 2017 · 5 comments
Closed
1 of 3 tasks

Handling of content:// URIs #126

gsantner opened this issue Nov 11, 2017 · 5 comments

Comments

@gsantner
Copy link
Owner

gsantner commented Nov 11, 2017

General information

  • Android Version: 7
  • App version: 0.2.2

Steps to reproduce

Currently everything is handled as java.io.File. content:// URIs are just converted to File using getPath(), which will not work in many cases when data coming from other applications.

Expected result

  • intent-filter for content URIs for DocumentActivity

  • Content URIs get correctly handled aswell. Includes saving/writing/reading/isFolder/isFile/isReadonly. One has also to check that at content URIs >renaming< may not be possible.

  • Ideally there is the current Document class contains a DocSource Object. Soirce is a Baseclass, has two derivates, one for file, one for content. Baseclass with an abstract boolean read/write/move/isFile/isFolder/isReadonly/isMoveable method. Parameters between activity are shared then with type Document or with the baseclass.

  • Maybe note future addition of other sources, e.g. Network? A sync provider/library with callbacks? ..

Some notes
@paldepind
Copy link

I ran into this error when trying to open a Markdown file through the Dropbox Android app.

Is there any way to use Markor with Dropbox or another syncing service?

@gsantner
Copy link
Owner Author

gsantner commented Jan 25, 2018

Well it's more like a "this is not done yet" then an error :D. Note that any help is appreciated here.

Yep, I (and many others told me they do) use Syncthing for that. https://syncthing.net/

Another user told me he uses FolderSync with a WebDav share.

@gsantner
Copy link
Owner Author

@paldepind : Markor got some <3 in the latest update regarding this. While you can't open files directly out of the DropBox app, you can now set the folder to STORAGE/Android/data/com.dropbox.android/files/u123456/scratch/ and edit files in there, thats the folder where Dropbox should sync all files too. Don't forget to check the Offline available mark in the dropbox app.

gsantner added a commit that referenced this issue Mar 18, 2018
subkanthi pushed a commit to subkanthi/markor that referenced this issue May 5, 2018
subkanthi pushed a commit to subkanthi/markor that referenced this issue May 5, 2018
@dubaaron
Copy link

@paldepind : Markor got some <3 in the latest update regarding this. While you can't open files directly out of the DropBox app, you can now set the folder to STORAGE/Android/data/com.dropbox.android/files/u123456/scratch/ and edit files in there, thats the folder where Dropbox should sync all files too. Don't forget to check the Offline available mark in the dropbox app.

Thank you very much for this. For the record, Dropbox used to support setting the "make available offline" for a folder on the free version -- as of this writing, that is no longer the case, you have to upgrade to premium/subscription Dropbox for that. (Also for the record, you used to be able to connect more than 3 devices for sync on free Dropbox, that is also no longer the case).

@gsantner
Copy link
Owner Author

thanks for notice. I dont personally use dropbox so commmunity feedback is important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants