I have a problem that I want to create an Android App which captures the current wallpaper of Device Desktop, in the background. Which is already done in an App which is shown below in images. as:

Desktop of Device:
And Background of an Clock App:

So, My problem is the same as above, how we set the background of an Activity as the current Desktop WallPaper. Please suggest me the right solution about the same.
Thanks in advance.
To see if current system has wallpaper, you use
peekDrawable():And Implement it like this: