How to Android Studio LockScreen Wallpaper

130 Views Asked by At
 private void UpdateMyWallpaper()
{
    myWallManager = WallpaperManager.getInstance(getApplicationContext());
    myDrawable = myWallManager.getDrawable();
    myCurrentWallpaper.setImageDrawable(myDrawable);
}

This work walpaper but i how to lockscreen walpaper set

1

There are 1 best solutions below

1
On
   private void UpdateMyLockWallpaper(){

    myWallManager = WallpaperManager.getInstance(this).setStream(inputStream, null, true, WallpaperManager.FLAG_LOCK);
    myDrawable = myWallManager.getDrawable();
    myCurrentWallpaper.setImageDrawable(myDrawable);
}