Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by Out of Memory ( 13 years ago )
ExifInterface ei = new ExifInterface(imageUrl);
int orientati ExifInterface.ORIENTATION_NORMAL);
if(bitmap!= null && !bitmap.isRecycled())
bitmap.recycle();
switch(orientation) {
case ExifInterface.ORIENTATION_ROTATE_90:
bitmap = Util.rotatePhoto(loadedImage, 90);
break;
case ExifInterface.ORIENTATION_ROTATE_180:
bitmap = Util.rotatePhoto(loadedImage, 180);
break;
case ExifInterface.ORIENTATION_ROTATE_270 :
bitmap = Util.rotatePhoto(loadedImage, 270);
}
if(loadedImage != null && !loadedImage.isRecycled())
loadedImage.recycle();
noticeImageView.setImageBitmap(bitmap);
Revise this Paste