I use code to set Wallpaper on your desktop:
Button buttonSetWallpaper = (Button)findViewById(R.id.set);
ImageView imagePreview = (ImageView)findViewById(R.id.preview);
imagePreview.setImageResource(R.drawable.five);
buttonSetWallpaper.setOnClickListener(new Button.OnClickListener(){
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
WallpaperManager myWallpaperManager
= WallpaperManager.getInstance(getApplicationContext());
try {
myWallpaperManager.setResource(R.drawable.five);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}});
as you can see from the code, for a preview and to install the Wallpapers used the same image (R. drawable.five). Is it possible to programmatically change the size and quality of images for the preview? Or the only way to create another smaller picture and use it as a preview? Also I would be very grateful, if somebody will throw a link to the source install Wallpaper similar to this: http://iscr.ru/1421354369/