title: setDensity / setTargetDensity ignored when bitmap is drawn
body: <p>I have a <code>Bitmap</code> and I'm trying to use it as the tiled background for my window. The problem is the scale is wrong. I want to make the bitmap draw twice as large on screen. I've tried to use both <code>Bitmap.setDensity</code> and <code>BitmapDrawable.setTargetDensity</code> and both have no effect.</p>
  
  <p>My code:</p>
  
  <pre><code>Bitmap bitmap = fromSomewhere();
  int original_density = bitmap.getDensity(); // this returns 240
  // bitmap.setDensity(..); // has no effect, tried with 120,160,480
  BitmapDrawable drawable = new BitmapDrawable(bitmap);
  // drawable.setTargetDensity(..); // has no effect, tried with 120,160,480
  drawable.setTileModeXY(TileMode.REPEAT, TileMode.REPEAT);
  getWindow().setBackgroundDrawable(drawable);
  </code></pre>
  
  <p>Notes:</p>
  
  <ul>
  <li>My target SDK is 8, I've also tried specifically setting <code>&lt;supports-screens android:anyDensity="true"/&gt;</code> in the manifest</li>
  <li>The <code>Bitmap</code> object is given, I have no control over how it's generated, I can only make manipulations to it.</li>
  <li>My test device is Samsung Galaxy 2 (high density), though I've also tested on the emulator on medium density and still no effects were seen.</li>
  <li>I didn't change any other densities, specifically the one of getWindow()</li>
  </ul>
  
  <p>Isn't density the simplest way to achieve a x2 scaling? Why isn't is working?\</p>