Skip to content

Enhancement: Use Android 4.4 Document Provider API #296

Closed

Description

@pulser

The document provider API in Android 4.4 (Kitkat) offers a framework for storage providers, such as OwnCloud, Google Docs, Box etc.

http://developer.android.com/about/versions/kitkat.html#44-storage-access

This looks like a useful way to permit users to access their OwnCloud files quickly, and make use of OwnCloud as their default storage location, throughout the OS, and permits the provider to be written once, but used by any client application that uses this API.

Implementation documentation is available at http://developer.android.com/reference/android/provider/DocumentsProvider.html

Activity

  1. erickrasmussen commented on Nov 6, 2013

    @erickrasmussen

    Looking forward to this as well.

  2. davivel commented on Nov 14, 2013

    @davivel
    Contributor

    We'll have a look to it. Thanks for the reference.

  3. vitoller commented on Jul 8, 2014

    @vitoller

    any updates on the "Storage Access Framework"?

    I still could not find a webdav implementation to be used with Android & Owncloud.
    (Boxcryptor might work, but it is closed source) - this would be such a good feature for Android.

  4. davivel commented on Jul 10, 2014

    @davivel
    Contributor

    No update yet, sorry.

  5. alerque commented on Aug 1, 2014

    @alerque

    👍 This should be given very high priority as far as development time goes. The lack of using this API on Android makes interfacing with other apps prohibitively confusing. For non-filesystem-savy users that are used to the Android ecosystem where data operations that require it are presented relative to data providers, not having ownCloud as an option is a huge blow to usability.

    It's tricky enough that I've struggled to walk people through the process. For an open operation for example one must first leave the app currently in use, use the ownCloud app to mark objects for sync, then go back to the app you were in and use a 3rd party file manager that wraps the file system in a document provider to select the right object to open (assuming the app doesn't have local storage permissions. If it does tho only part of that routine that is left off is the 3rd party navigator, but you still have to switch apps manually a couple times!)

  6. davivel commented on Aug 6, 2014

    @davivel
    Contributor

    We do know this is very important, but it is only something available only in Android 4.4. Now it's near the 20% of registered devices according to Google, but there is still an 80% of devices that know nothing about this API.

    We need to deal with this, but we need more to deal with other pending features. So, please, let's all be patient with this one.

    Or still better. What about a contribution :) ?

  7. alerque commented on Aug 7, 2014

    @alerque

    I think you're underestimating this. It's a blocker-bug as far as a number of groups I'm trying to migrate from Dropbox. Most other feature requests look like things that are cool to have, but aren't critical to the basic function of storing and retrieving files. Besides at this point 4.4 is rolling out faster than the ownCloud app is being developed. I'd hate to see adoption cut off at the knees because it's falling behind the torrential pace that Android moves at.

    I'm sorry my programming expertise is not in Android app development. I have, however, started a bounty on this issue and encourage others interested in seeing this happen sooner rather than later to pitch in and until some developer somewhere is motivated to scratch the itch.

  8. davivel commented on Aug 11, 2014

    @davivel
    Contributor

    OK, we will have a look to push it higher.

  9. strugee commented on Mar 9, 2015

    @strugee

    @davivel did you ever look into this? I share @alerque's concerns.

  10. davivel commented on Apr 30, 2015

    @davivel
    Contributor

    @strugee , sure we looked into it. Unfortunately, looking does not produce any result similar to writing code.

    This will be done when we can book the time for it. There are several reasons why it's very interesting to have it, but we are a small team an have to address many top priorities.

    Code contributions in this and related issues are very welcome.

  11. strugee commented on May 4, 2015

    @strugee

    @davivel should have been clearer. By 'it', I meant this issue's priority, not the issue itself. Sorry for the confusion (and thanks, as always, for your hard work).

  12. haseebeqx commented on Oct 4, 2015

    @haseebeqx

    ok i am working on it. but when i used the existing content provider it shows permission denied since the android:exported is false and android:grantUriPermissions is not set. what should i do now. set android:exported to true or granturipermission or any other options ?.

    currently i managed to implement this feature with exported content provider and it is working fine

  13. dschuermann commented on Oct 4, 2015

    @dschuermann
  14. haseebeqx commented on Oct 4, 2015

    @haseebeqx

    i already have a working model .

    but the problem is in kitkat the document provider works from another app called documents inside system. so there are issues with current content provider and localbroadcasts. i can not use the current file access provider to look at data since it is not exported and android:grantUriPermissions not set.

  15. karliwalti commented on Nov 17, 2015

    @karliwalti

    May I additionally support the integration of this. Microsoft office is now supporting "Other cloud storage" and all major service providers are supported (tested with Drive, Box, Dropbox, and OneDrive ). To work on the go from the cloud it would be essential

  16. 14 remaining items

  17. AndyScherzinger commented on Jan 9, 2016

    @AndyScherzinger
    Contributor

    Thanks for the clarification @tobiasKaminsky that is what I was asking about :)

  18. ilmaisin commented on Jan 26, 2016

    @ilmaisin

    The beta client seems to support opening via SAF, but not saving.

  19. added a commit that references this issue on Feb 4, 2016
  20. added a commit that references this issue on Jun 21, 2016
  21. added 5 commits that reference this issue on Jun 22, 2016
  22. przybylski commented on Jul 2, 2016

    @przybylski
    Contributor

    document provider merged, closing

  23. added this to the 2.1.0 milestone on Jul 4, 2016
  24. added a commit that references this issue on Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions