android icon indicating copy to clipboard operation
android copied to clipboard

Document Provider improvements

Open jesmrec opened this issue 6 years ago • 3 comments

Stuff to improve in document provider:

  • Copy/move folders between oC accounts: https://github.com/owncloud/android/issues/2658

  • Move files between oC accounts: https://github.com/owncloud/android/issues/2659

  • OCIS's shares in documents provider https://github.com/owncloud/android/issues/4322

issues @2658 and #2659 represent the main problems faced against copy/move operations. When big amount of files moved (mainly) between oC accounts or in the same account (account in SAF is the same as a provider), behaviour is not deterministic. After checking if there is some kind of memory restriction or a swap memory that prevents higher amount of data to be transferred, i found nothing.

(updated 20/02/2024)

jesmrec avatar Nov 06 '18 09:11 jesmrec

Here we have the official doc about storage access framework:

https://developer.android.com/guide/topics/providers/document-provider?hl=en

in which several examples of different options can illustrate the way to do. I'd go for an epic and several small issues to implement different features of the document provider

jesmrec avatar Mar 08 '19 13:03 jesmrec

Let's define some tasks:

  • [x] Research about document provider docs and the current oC implementation and define pending scenarios that could be interesting to be added in the ownCloud app for Android.
  • [ ] Create a small app in Kotlin to take the first steps with document providers.

CC @abelgardep

Edit: these taks moved to an spike issue: #2482

davigonz avatar Mar 11 '19 12:03 davigonz

Current Status:

DocumentProviderFilesOptions

Some available improvements:

  • Rename Document (API 21) Doc
  • Move Document (API 24) Doc
  • Copy Document (API 24) Doc
  • Open File Write Mode (API 19) Doc
  • Delete Document (API 19) Doc
  • Create Folder (API 19) Doc
  • Show Thumbnails even if files are not downloaded

abelgardep avatar Mar 14 '19 13:03 abelgardep