Caused by: java.lang.OutOfMemoryError: Failed to allocate a 6653232 byte allocation with 2628896 free bytes and 2MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:609)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1080)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2738)
at android.content.res.Resources.loadDrawable(Resources.java:2643)
at android.content.res.TypedArray.getDrawable(TypedArray.java:870)
at android.view.View.<init>(View.java:3967)
at andro
메모리를 봤는데 어떤 한 activity를 실행하고 다시 껐다가 또 실행하는 것을 반복하면 free memory가 점점 줄어들더니 에러가 발생합니다.
System.gc()로 해결하는 것 말고 다른 방법으로 해결할 방도가 있나요?