Code example for WallpaperManager

Methods: setResource

0
	} 
 
	@Override 
	public void selectWallpaperResource(int res) {
		try { 
			manager.setResource(res);
		} catch (IOException e) {
			e.printStackTrace();
		} 
	} 
 
	@Override 
	public void setActivity(Activity activity) {
		contextActivity = activity;
	} 
 
	@Override 
	public int getSDKVersion() { 
		return 5; 
	}