I want to know how to use the getCropAndSetWallpaperIntent method in the WallpaperMannager class
I use it as follows:
getCropAndSetWallpaperIntent(Uri.fromFile(new File(wallpaper_path)));
But this throws an exception:
java.lang.IllegalArgumentException: Image URI must be of the content scheme type
How can i fix this?
source share