I followed the instructions below to crop an image.
http://coderzheaven.com/index.php/2011/03/crop-an-image-in-android/
The height and width of the final cro
I further verified the following instructions.
http://coderzheaven.com/index.php/2011/03/crop-an-image-in-android/
I found that the codes are not good enough and some of them are redundant.
To crop a big bitmap image, there is no need to use matrix to do the task.
Just use canvas.drawBitmap method can crop the big image !
Also no need to touch the BitmapFactory.Options.
Now I simply crop the image and let the imageview resize it. No more out-of-memory error. Bingo !