Use this version of the method: http://developer.android.com/reference/android/graphics/BitmapFactory.html#decodeStream%28java.io.InputStream,%20android.graphics.Rect,%20android.graphics.BitmapFactory.Options%29
Pass in a BitmapFactory.Options that has an inSampleSize > 1: http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html#inSampleSize Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 6:54 AM, Vijay Krishnan <[email protected]>wrote: > Hi all, > How to resolve the java.lang.OutOfMemoryError while calling > BitmapFactory.decodeStream(stream). > > Thanks, > vijay.k > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

