title: Fatal Exception: java.lang.OutOfMemoryError: int[] of length 1083403672 exceeds the VM limit
body: <pre><code>Fatal Exception: java.lang.OutOfMemoryError: int[] of length 1083403672 exceeds the VM limit
     at android.util.ArrayMap.allocArrays(ArrayMap.java:196)
     at android.util.ArrayMap.ensureCapacity(ArrayMap.java:307)
     at android.os.Bundle.unparcel(Bundle.java:247)
     at android.os.Bundle.getString(Bundle.java:1118)
     at com.test.example.pushnotification.LocalyticsReceiver.handleNotificationReceived(LocalyticsReceiver.java:61)
     at com.test.example.pushnotification.LocalyticsReceiver.onReceive(LocalyticsReceiver.java:52)
     at android.app.ActivityThread.handleReceiver(ActivityThread.java:2426)
     at android.app.ActivityThread.access$1700(ActivityThread.java:139)
     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1276)
     at android.os.Handler.dispatchMessage(Handler.java:102)
     at android.os.Looper.loop(Looper.java:136)
     at android.app.ActivityThread.main(ActivityThread.java:5103)
  </code></pre>
  
  <p>The code which it points to:-</p>
  
  <pre><code>String message = intent.getExtras().getString("message");
  </code></pre>
  
  <p>Please find the code snapshot below:</p>
  
  <pre><code> @Override
      public void onReceive(Context context, Intent intent) {
  
          String appKey = context.getResources().getString(R.string.localytics_api_key);
          if (!TextUtils.isEmpty(appKey)) {
              Localytics.integrate(context.getApplicationContext(), appKey);
          }
  
          if (intent.getAction().equals("com.google.android.c2dm.intent.REGISTRATION")) {
              LocalyticsUtil.handleRegistration(intent);
          } else {
              Localytics.handlePushNotificationReceived(intent);
              handleNotificationReceived(context, intent);
          }
      }
  
      //handle notification when received
      private void handleNotificationReceived(Context context, Intent intent) {
  
  
          // Get the notification message
          String message = intent.getExtras().getString("message");
  </code></pre>
  
  <p>...</p>
  
  <p>Any idea why it occurs while fetching extra from an intent?</p>