title: How to resize a photo in android?
body: <p>I'm actually new in android but I managed to take a picture with my app and this is how I take a picture and save it... The problem is that I need to resize it before saving it on the phone... But I can't figure out how to to that.. I've googled my problem but the only thing I found was with bitmap pictures and that's not my case I guess..</p>
  
  <p>Here is the code I'm using to take the picture:</p>
  
  <pre><code>Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
  
  File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM),"GUASTO" + System.currentTimeMillis() + ".jpg"); /
  
  intent.putExtra(MediaStore.EXTRA_OUTPUT, photoPath);
  
  startActivityForResult(intent, SCATTA_FOTO);
  </code></pre>
  
  <p>Thank you!!</p>