I have some large files (images and video) which I need to store in a content provider. The android documentation indicates...
If you are exposing byt
There is a problem writing files though. How does the content provider know then the write is complete?
When closing an OutputStream obtained via a ContentResolver.openOutputStream() I wish for the corresponding (custom) ContentProvider to perform some custom action. Presently I am using creating a FileObserver on a temporary file but it seems like the wrong way to get it done. My first thought was to subtype the ParcelFileDescriptor produced by the ContentProvider.openFile() method but that didn't seem to work for me.
That being said there were some errors which resulted in the MyParcelFileDescriptor usage.
Bottom line, is there any interaction between the file objects as seen by the ContentResolver and those of the ContentProvider?