Data is encrypted and stored in the file. ContentProvider decrypts data and I would like to avoid to write decrypted data to the file just to get file descriptor.
How did you implement yours? Thanks. On Jan 7, 4:34 pm, Brion Emde <[email protected]> wrote: > You don't say where your data is stored. I'm fetching data from a web > service in JSON format. I decided to encapsulate the interactions with > the service, which is RESTful, as a ContentProvider for Android. It's > working well, so far. I still need to integrate authentication. > > On Jan 7, 3:08 pm, gnugu <[email protected]> wrote: > > > Hi, > > I'm writing a ContentProvider that will provide content that is not > > stored in a file or database. > > > I understand hat I have to overwrite openAssetFile() method. > > > My problem is that I don't know how to create AssetFileDescriptor from > > data in memory (byte array or stream). > > > Can anybody please point me to the right direction? > > > I was digging in Android source where they use MemoryFile but I can't > > obtain ParcelFileDescriptor from MemoryFile :(. > > > Any help greatly appreciated. > > > Thanks.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

