Unfortunately using ContentResolver is not working as expected. So I decided to use other approach.
try {
String fileName = DateFormat.format("yyyyMMdd_hhmmss", new Date()).toString();
File dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
dir.mkdirs();
File file = new File(dir, fileName + ".jpg");
OutputStream out = new FileOutputStream(file);
image.compress(Bitmap.CompressFormat.JPEG, 90, out);
out.close();
MediaScannerConnection.scanFile(this,
new String[] { file.toString() },
null,
null);
} catch (IOException e) {
e.printStackTrace();
}