How to convert a bitmap to a jpeg file in Android?
I think this is what you need
bitmap.compress(CompressFormat.JPEG, 90, outputStream);
I hope this will help you.
Try this
bitmap.compress(Bitmap.CompressFormat.JPEG, quality, outStream);
Here is a sample Program
compressing-a-bitmap-to-jpg-format-android