title: Google Maps v2 on Android: marker is too small
body: <p>I need to set a custom marker on google maps v2. I used               </p>
  
  <pre><code>.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.marker_custom))
  </code></pre>
  
  <p>to set it and it appears really small (about 1/3 of the custom marker). marker_custom is a png file 32x37 32-bit color.</p>
  
  <pre><code>protected Bitmap adjustImage(Bitmap image) {
  int dpi = image.getDensity();
  if (dpi == mDpi)
      return image;
  else {
      int width = (image.getWidth() * mDpi + dpi / 2) / dpi;
      int height = (image.getHeight() * mDpi + dpi / 2) / dpi;
      Bitmap adjustedImage = Bitmap.createScaledBitmap(image, width, height, true);
      adjustedImage.setDensity(mDpi);
      return adjustedImage;
      }
  }
  </code></pre>
  
  <p>I have already tried to resize the bitmap accordingly to the density of the screen by using:</p>
  
  <p>and I also tried to use</p>
  
  <pre><code>.setIcon(BitmapDescriptorFactory.fromBitmap(markerFreeBitmap))
  </code></pre>
  
  <p>but nothing changed.</p>
  
  <p>Any idea? Thank you very much!</p>