

But before doing that we need to make sure that: This provides your own opened FileDescriptor that can be used to read the data, as well as the offset and length of that entry’s data in the file.Īnd so here in our app we will be using AssetFileDescriptor to fetch the Image Assets using AssetManager. Now we will study about AssetFileDescriptor and see how these images are rendered to WhatsApp. Then in the query method of our ContentProvider we have returned specific cursor object (containing details of StickerPack and the Sticker) corresponding to each Uri.

