Out of memory error in BitmapFactory
问题 Today I got my app crashed, Out of memory error. java.lang.OutOfMemoryError in android.graphics.BitmapFactory.nativeDecodeAsset I only used Bitmap Factory to make a backgroud to my action bar The code: BitmapDrawable background = new BitmapDrawable (BitmapFactory.decodeResource(getResources(), R.drawable.actionbar)); background.setTileModeX(android.graphics.Shader.TileMode.REPEAT); actionbar.setBackgroundDrawable(background); This error doesn't happend on activity start, it happens after