Thursday, June 23, 2011

[android-developers] Re: croping, scaling and rotating a Bitmap make my app crash

Bitmap + Android + Memory = PIA

Look into BitmapFactory.Options to be used with a BitmapFactory
http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html

and specifically the "inSampleSize" options and try to find the
balance between memory usage and image quality.

Small device = small memory = small bitmaps or Dalvik will commit
suicide :D

Yahel

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment