java - Set Wallpaper by system wallpaper manager -
i have wallpaper app.
wallpapers set using wallpapermanager.setbitmap()
.
how query system default wallpaper chooser, , set choosen wallpaper?
<uses-permission android:name="android.permission.set_wallpaper">
add permission
and
wallpapermanager mywallpapermanager = wallpapermanager.getinstance(getapplicationcontext()); try { mywallpapermanager.setresource(r.drawable.five); } catch (ioexception e) { e.printstacktrace(); }
Comments
Post a Comment