I got lots of java files and the mechanism for adding a sticker to WhatsApp. I'm working on memes app that include stickers as well. I wanna let the user add a customized sticker to WhatsApp. My app implements Room, View-Model, Repository Pattern and lots of features, so I got a snippet from WhatsApp source code for android that shows the intent action as well. but I just wanna simple one so.
I just want to:
- load sticker from firebase
- store it in files
- change the extension to webp
- when the user clicks on the save button it would add it to WhatsApp.
I can do all the above steps but for the last one, I need simplified code to save it. is there any way to add sticker without creating Content Provider
Thanks in advance
First, you cannot just change any image format to
.webp
just by changing extension.You'll have to properly change the format.
Second, a
ContentProvider
is the most important part here that will allow WhatsApp to communicate with your App to know about the sticker files (Images).So No, you cannot just add a sticker pack to WhatsApp without implementing the appropriate
ContentProvider
.Check the
ContentProvider
implementation here & change it according to your logic.