getApplicationContext().setWallpaper(bmp);
getting error in this line.

Error: The method setWallpaper(Bitmap) from the type Context is deprecated.
Please help me.. Thanks