Please help me to solve this problem. I didn't find any stuff regarding to my problem. I have successfully implemented rotation code for bitmap using JNI library followed by steps- which i followed. With the help of these steps, i got rotated bitmap from JNI library. But when i saved rotated bitmap in to SD card, image size almost doubles like 4MB image turns into 8MB image with same quality.
Please help me to solve this problem.
Code:
        JniBitmapHolder bitmapHolder = new JniBitmapHolder();
        bitmapHolder.storeBitmap(For_rotate_img);
        For_rotate_img.recycle();
        if (rightRotation == true) {
            bitmapHolder.rotateBitmapCw90();
        } else if (leftRotation == true) {
            bitmapHolder.rotateBitmapCcw90();
        }
        scaledBitmapNN = bitmapHolder.getBitmapAndFree();
        if (scaledBitmapNN != null) {
            // if (pDialog_rotation != null) {
            // pDialog_rotation.dismiss();
            // }
            SaveRotatedIamge(img_path, scaledBitmapNN);
        } else {
            // if (pDialog_rotation != null) {
            // pDialog_rotation.dismiss();
            // }
            someError = true;
        }
 
    