How to create a specific image as wallpaper in Sketchware
The code used:
WallpaperManager
myWallpaperManager =
WallpaperManager.getInstance(getApplicationContext());
try{
myWallpaperManager.setResource(R.drawable.wall);
}catch (Exception g) {
g.printStackTrace();
}
WallpaperManager
myWallpaperManager =
WallpaperManager.getInstance(getApplicationContext());
try{
myWallpaperManager.setResource(R.drawable.wall);
}catch (Exception g) {
g.printStackTrace();
}
Comments
Post a Comment