Iam trying to capture a picture using
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
if (intent.resolveActivity(getPackageManager()) != null) {
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photoFile));
startActivityForResult(takePictureIntent, REQUEST_CODE);
}
}
but when i get the result, the orientation of the picture is not proper in most of the cases. Since I need to use the picture at a number of places, so I want the picture to be saved with the proper orientation. How can this be done?
Doubt : 1. Doesn't android default camera itself take care of the orientation when saving picture? 2. DO I have to use "ExifInterface" tweak every time when I display the picture from local?
Aucun commentaire:
Enregistrer un commentaire