I am developing an application in which I have an image gallery and when I click on any image, it opens in full mode. But I want the set As Wallpaper
functionality like android default gallery:
I know it can be done by custom code (setting wallpaper and cropping image). But I want to pass that image to android default wallpaper setter so that android will manage the cropping and setting wallpaper task. How can I do that? How can I pass that image to android default walpaper setter?