How to capture low resolution picture using android camera

Nitish Patel picture Nitish Patel · Aug 14, 2013 · Viewed 8.4k times · Source

I want to capture photo and also save it to my sdcard using android camera.I know its easy but I want to store image in low resolution without telling user go to setting and set low resolution manually.

Answer

dharam picture dharam · Aug 14, 2013

What i am gonna write is not good practice to do code but it may full-fill your requirement

  • capture image as you do with normally using android default camera .
  • check the path of that image which just now captured .
  • reduce quality of that image as per requirement using BitmapFactory.Options calss and store in bitmap object
  • delete that original image which captured by default camera
  • save that bitmap object to SD Card where old image was located with same file name and path