Hi!
I've made a ContentProvider where I have overridden the "openFile" function and return a ParcelFileDescriptor. The problem I'm having is that I have to copy the res/raw resources to the file system before I can pass them along using ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);
Is there a way to share the resources embedde in my ContentProvider without resorting to first copying the resource to disk and doing:
URI uri = URI.create("file:///data/data/<package>/files/myfile");
File file = new File(uri);
return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);
Regards,
-Tommy

