Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation:

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • OutOfMemoryError when loading an image
    via Stack Overflow by AMb
  • java.lang.OutOfMemoryError
    via GitHub by wussup
  • OutOfMemoryError
    via GitHub by chathudan
  • Out of memory while creating bitmap in android
    via by Unknown author,
  • Out of memory
    via GitHub by androidbyxj
  • OutOfMemoryError
    via GitHub by kamoljan
  • OOM in ImageCleanupTask
    via GitHub by Tan-Tshunglee
    • java.lang.OutOfMemoryError at Method) at at at at processing.core.PGraphicsAndroid2D.allocate(Unknown Source) at processing.core.PGraphics.setSize(Unknown Source) at processing.core.PApplet.makeGraphics(Unknown Source) at processing.core.PApplet.initSurface(Unknown Source) at Source) at at at at at at at at at at at at imc_ebola.test.imcebola.MainActivity$1.onTabSelected( at at at$ at$TabView.performClick( at android.view.View$ at android.os.Handler.handleCallback( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke( at$ at at dalvik.system.NativeStart.main(Native Method)

    Users with the same issue

    aakash1 times, last one,
    Agócs Tamás
    Agócs Tamás3 times, last one,
    bayukresno7 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    11 more bugmates