My code code is:
public Bitmap loadPhoto(Uri uri) { Bitmap scaled = null; try { scalled = Bitmap.createBitmap( MediaStore.Images.Media.getB
Try using BitmapFactory to fix the problem http://developer.android.com/reference/android/graphics/BitmapFactory.html