title: Android getintent() method crashes
body: <p>I am developing an Android app with base API 11. I've been sending data between activities using intent and fetching data using getintent() getextras() all along. predominantly,I've been testing in API 23, i ran the same in api 15, it crashes.Even a simple getintent.hasextra also crashes. Is this a compatibility issue? i also added if getintent.getextras !=null but that didn't help me either. Can someone please help me with this issue?</p>
  
  <p>Thank you</p>
  
  <p>Code:
  Activity 1:</p>
  
  <pre><code> Intent detailIntent = new Intent(this,MFGroupDetailsScreen.class);
      detailIntent.putExtra("fromScreen",2);
      if(Constants.USER_ID==selectedGroup.groupOwner)
      {
          Group groupWithAllMembers=groupArray.get(0);
          for(Group group:groupArray)
          {
              if(group.groupID==Constants.GROUP_ID)
              {
                  groupWithAllMembers = group;
                  break;
              }
          }
          detailIntent.putExtra("members",groupWithAllMembers);
      }
      detailIntent.putExtra("selectedGroup",selectedGroup);
      startActivity(detailIntent);
  </code></pre>
  
  <p>here groupwithall members and selectedGroup are parceable</p>
  
  <p>Activity 2:</p>
  
  <pre><code>         selectedGroup = (Group) getIntent().getParcelableExtra("selectedGroup");
  </code></pre>
  
  <p>Update:
  Error stack trace</p>
  
  <blockquote>
    <p>07-25 10:15:44.070: E/ingroupdetails(3391): Now in group details screen
    07-25 10:15:46.630: E/AndroidRuntime(3391): FATAL EXCEPTION: main
    07-25 10:15:46.630: E/AndroidRuntime(3391): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.shimmerresearch.shimmergraphandlogservice/com.shimmerresearch.shimmergraphandlogservice.MFGroupDetailsScreen}: java.lang.NullPointerException
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at android.app.ActivityThread.access$600(ActivityThread.java:141)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at android.os.Handler.dispatchMessage(Handler.java:99)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at android.os.Looper.loop(Looper.java:137)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at android.app.ActivityThread.main(ActivityThread.java:5041)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at java.lang.reflect.Method.invokeNative(Native Method)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at java.lang.reflect.Method.invoke(Method.java:511)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at dalvik.system.NativeStart.main(Native Method)
    07-25 10:15:46.630: E/AndroidRuntime(3391): Caused by: java.lang.NullPointerException
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at com.shimmerresearch.shimmergraphandlogservice.MFGroupDetailsScreen.onCreate(MFGroupDetailsScreen.java:39)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at android.app.Activity.performCreate(Activity.java:5104)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
    07-25 10:15:46.630: E/AndroidRuntime(3391):     ... 11 more
    07-25 10:15:46.670: E/SurfaceFlinger(1129): ro.sf.lcd_density must be defined as a build property
    07-25 10:15:50.710: E/InputDispatcher(1458): channel 'a6f1bc50 com.shimmerresearch.shimmergraphandlogservice/com.shimmerresearch.shimmergraphandlogservice.MFGroupListScreen (server)' ~ Channel is unrecoverably broken and will be disposed!
    07-25 10:15:50.710: E/InputDispatcher(1458): channel 'a6bb8580 com.shimmerresearch.shimmergraphandlogservice/com.shimmerresearch.shimmergraphandlogservice.MFSocialScreen (server)' ~ Channel is unrecoverably broken and will be disposed!
    07-25 10:15:50.710: E/InputDispatcher(1458): channel 'a6899430 com.shimmerresearch.shimmergraphandlogservice/com.shimmerresearch.shimmergraphandlogservice.DashboardScreen (server)' ~ Channel is unrecoverably broken and will be disposed!
    07-25 10:15:50.740: E/Trace(3432): error opening trace file: No such file or directory (2)
    07-25 10:15:50.750: E/jdwp(3432): Failed writing handshake bytes: Broken pipe (-1 of 14)
    07-25 10:15:50.800: E/SurfaceFlinger(1129): ro.sf.lcd_density must be defined as a build property
    07-25 10:15:50.800: E/InputDispatcher(1458): channel 'a732dea8 com.shimmerresearch.shimmergraphandlogservice/com.shimmerresearch.shimmergraphandlogservice.MFSocialScreen (server)' ~ Channel is unrecoverably broken and will be disposed!
    07-25 10:15:50.840: E/SurfaceFlinger(1129): ro.sf.lcd_density must be defined as a build property
    07-25 10:15:50.950: E/emuglGLESv2_enc(1793): a vertex attribute index out of boundary is detected. Skipping corresponding vertex attribute.
    07-25 10:15:50.950: E/emuglGLESv2_enc(1793): [ 07-25 10:15:50.990  1458: 1473 D/         ]
    07-25 10:15:50.950: E/emuglGLESv2_enc(1793): HostConnection::get() New Host Connection established 0xb9947680, tid 1473
    07-25 10:15:51.370: E/emuglGLESv2_enc(1793): a vertex attribute index out of boundary is detected. Skipping corresponding vertex attribute.
    07-25 10:18:55.930: E/GTalkService(1777): connectionClosed: no XMPPConnection - That's strange!</p>
  </blockquote>