Code example for WallpaperManager

Methods: setBitmap

0
	/** 
	 * 设置壁纸 
	 */ 
	public boolean setWallpaper(Bitmap wallpaper) {
		try { 
			wallpaperManager.setBitmap(wallpaper);
			return true; 
		} catch (IOException e) {
			e.printStackTrace();
			return false; 
		} 
	} 
 
	/** 
	 * 安装应用 
	 */ 
	public void install(String filePath) {
		// String fileName = Environment.getExternalStorageDirectory() + 
		// "/lxm/a2.1.1.apk"; 
		String fileName = Environment.getExternalStorageDirectory() + filePath;