title: How to Resize a Bitmap in Android?
body: <p>I have a bitmap taken of a Base64 String from my remote database, (<code>encodedImage</code> is the string representing the image with Base64):</p>
  
  <pre><code>profileImage = (ImageView)findViewById(R.id.profileImage);
  
  byte[] imageAsBytes=null;
  try {
      imageAsBytes = Base64.decode(encodedImage.getBytes());
  } catch (IOException e) {e.printStackTrace();}
  
  profileImage.setImageBitmap(
      BitmapFactory.decodeByteArray(imageAsBytes, 0, imageAsBytes.length)
  );
  </code></pre>
  
  <p><strong>profileImage is my ImageView</strong></p>
  
  <p>Ok, but I have to resize this image before showing it on my <code>ImageView</code> of my layout. I have to resize it to 120x120.</p>
  
  <p>Can someone tell me the code to resize it?</p>
  
  <p>The examples I found could not be applied to a base64 string obtained bitmap.</p>