title: Center Android Wallpaper
body: <p>I'm trying to make an app that changes the system wallpaper. In my code I get an image that has the desired minimum dimensions (from WallpaperManager). For example on the Nexus One the desired minimum dimensions are 884x800. When I get my image andset it as the wallpaper it automatically "left aligns" it so that I can see only the left side of the 884x800 image (The Nexus One's screen res is 480x800).</p>
  
  <p>Is there a way I can set the wallpaper so it is "centered"?</p>
  
  <p>I am setting the wallpaper like this:</p>
  
  <pre><code>WallpaperManager wallpaperManager = WallpaperManager.getInstance(getApplicationContext());
  
  try {
      wallpaperManager.setBitmap(bitmap);
  } catch (IOException e) {
      Log.e("Error", e.toString());
  }
  </code></pre>
  
  <p><strong>NOTE:</strong> If I get the image as 480x800 it blows it up so I can only see the top left corner when it is the wallpaper.</p>
  
  <p>Here is an example of an image that is 884x800:</p>
  
  <p><img src="https://i.stack.imgur.com/zAKD4l.jpg" alt=""></p>
  
  <p>Here is an example of what it looks like when I set it as the wallpaper:</p>
  
  <p><img src="https://i.stack.imgur.com/LM2GQl.png" alt=""></p>
  
  <p>Here is an example of what it looks like when I use a 480x800 image:</p>
  
  <p><img src="https://i.stack.imgur.com/vZ62l.png" alt=""></p>