java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 16 free bytes and 16B until OOM, target footprint 201326592, growth limit 201326592 at com.android.internal.os.BinderInternal$GcWatcher.finalize(BinderInternal.java:63) code example

Example 1: java.lang.OutOfMemoryError: Failed to allocate a 345067788 byte allocation with 11479504 free bytes and 111MB until OOM

<application
    android:allowBackup="true"
    android:hardwareAccelerated="false"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

Example 2: java.lang.OutOfMemoryError: Failed to allocate

<application
      android:name=".ParaseApplication"
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme"
      android:largeHeap="true" >

Tags:

Misc Example