Android.App.WallpaperManager.SetBitmap Method
Change the current system wallpaper to a bitmap.

Syntax

[Android.Runtime.Register("setBitmap", "(Landroid/graphics/Bitmap;)V", "GetSetBitmap_Landroid_graphics_Bitmap_Handler")]
public virtual void SetBitmap (Android.Graphics.Bitmap bitmap)

Parameters

bitmap
The bitmap to save.

Exceptions

TypeReason
Java.IO.IOExceptionIf an error occurs reverting to the built-in wallpaper.

Remarks

Change the current system wallpaper to a bitmap. The given bitmap is converted to a PNG and stored as the wallpaper. On success, the intent Android.Content.Intent.ActionWallpaperChanged is broadcast.

This method requires the caller to hold the permission NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#SET_WALLPAPER.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5