I have managed to find the code to set an image as wallpaper using intent. But the dialog is showing me 2 more options "Contact photo" and "Wallpaper"
So is there any option to just show the first 3 options only? like what happens inside the gallery app when you click set as wallpaper it shows you only 3 options. "Home and lock screens", "Home screen", and "Lock screen"