开发者

Memory error in Android after capturing images

开发者 https://www.devze.com 2023-04-08 16:08 出处:网络
In my Android application I\'m trying to capture three images and upload this three images. I\'m capturing two images one by one no problem but when I capture third images the application crashes with

In my Android application I'm trying to capture three images and upload this three images. I'm capturing two images one by one no problem but when I capture third images the application crashes with error:

09-26 16:17:31.398: ERROR/AndroidRuntime(24115): java.lang.OutOfMemoryError: bitmap size exceeds VM budget
09-26 16:17:31.398: ERROR/AndroidRuntime(24115):     at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
09-26 16:17:31.398: ERROR/AndroidRuntime(24115):     at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:459)
09-26 16:17:31.398: ERROR/AndroidRuntime(24115):     at android.graph开发者_如何转开发ics.BitmapFactory.decodeFile(BitmapFactory.java:271)
09-26 16:17:31.398: ERROR/AndroidRuntime(24115):     at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:296)

How can I solve the error like this?

0

精彩评论

暂无评论...
验证码 换一张
取 消