Code example for WallpaperManager

Methods: setBitmap

0
        prgrsDialog.setIndeterminate(true);
    } 
    @Override 
    protected Void doInBackground(final Bitmap... bmp) {
        try { 
            mWM.setBitmap(bmp[0]);
            publishProgress(100); 
        } catch (Exception e) {
            Log.e("oops", "Could not set wallpaper. " + e.getMessage());
        } 
        return null; 
    } 
 
    @Override 
    protected void onPostExecute(final Void result) {
        prgrsDialog.setIndeterminate(false);
        prgrsDialog.dismiss();
    } 
     
    @Override