bitmap size exceeds VM budget

写道
FATAL EXCEPTION: main
java.lang.OutOfMemoryError: bitmap size exceeds VM budget
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:477)
at android.graphics.Bitmap.createBitmap(Bitmap.java:444)
at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:349)
at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:498)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:473)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:336)
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:715)
at android.content.res.Resources.loadDrawable(Resources.java:1713)
at android.content.res.Resources.getDrawable(Resources.java:585)
at cn.sinonet.uhome.ui.bulbcurtain.util.BmpUtil.getBmpByResid(BmpUtil.java:12)
at cn.sinonet.uhome.ui.bulbcurtain.util.BmpUtil.getBmpBySize(BmpUtil.java:54)
at cn.sinonet.uhome.ui.bulbcurtain.view.UnadjustableBulb.loadBgBmp(UnadjustableBulb.java:256)
at cn.sinonet.uhome.ui.bulbcurtain.view.UnadjustableBulb.loadBmp(UnadjustableBulb.java:223)
at cn.sinonet.uhome.ui.bulbcurtain.view.UnadjustableBulb.onDraw(UnadjustableBulb.java:206)
at android.view.View.draw(View.java:6968)

 

 

 

------------------------------------------------------------------------------------------------------------

相关链接:

http://blog.csdn.net/wbw1985/article/details/6044724

 

你可能感兴趣的:(bitmap)