How to set image as a wallpaper on a single home screen

Jalpa Bhaliya

New member
Oct 31, 2012
1
0
0
Visit site
As we know android comes with 3 or 5 or 7 home screens. I want to set wallpaper image on a single home screen programetically and fix it for all other home screens.

I used following code :

Display display =((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();

Bitmap bmp = Bitmap.createScaledBitmap(wallpaperImage,display.getWidth(),display.getHeight(), true);

setWallpaper(bmp);

and wallpaper image is set but it spans across all 3 home screen. How can i fix it to one screen so that if user swaps home screen a single image will display.
 

Trending Posts

Forum statistics

Threads
943,100
Messages
6,917,275
Members
3,158,818
Latest member
Nanran21