I am trying to change the lock screen background image from my app but am unable to figure out how to do it. I succeeded in changing the home screen wallpaper using WallPaperManager, but could not find a source to do the same for the lock screen. I know apps such as QuickPic and the stock Gallery do this, so how can I implement it?
Here is the code I used to change the home screen:
WallpaperManager myWallpaperManager = WallpaperManager
.getInstance(getApplicationContext());
try {
myWallpaperManager.setBitmap(bm);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Can someone who has implemented this please point me in the right direction to do this with my app?