Back to project page Instabackground.
The source code is released under:
Apache License
If you think the Android project Instabackground listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package es.expilu.instabackground.util; //from w ww.j a va 2s . c o m import java.io.IOException; import android.app.WallpaperManager; import android.content.Context; import android.graphics.Bitmap; public class Fun { public static boolean changeWallpaper(Context context, Bitmap bmp) { WallpaperManager wallpaperManager = WallpaperManager.getInstance(context); try { wallpaperManager.setBitmap(bmp); return true; } catch (IOException e) { return false; } } }