java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    BaseFragmentActivityEclair.checkForValidRequestCode causes java.lang.IllegalArgumentException

    Stack Overflow | 3 months ago | a_dzik
    java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode Here is the exact crash: Fatal Exception: java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Can only use lower 16 bits for requestCode

      at android.support.v4.app.BaseFragmentActivityEclair.checkForValidRequestCode()
    2. Android Support v4
      FragmentActivity.startIntentSenderForResult
      1. android.support.v4.app.BaseFragmentActivityEclair.checkForValidRequestCode(BaseFragmentActivityEclair.java:64)
      2. android.support.v4.app.BaseFragmentActivityEclair.startIntentSenderForResult(BaseFragmentActivityEclair.java:45)
      3. android.support.v4.app.FragmentActivity.startIntentSenderForResult(FragmentActivity.java:75)
      3 frames
    3. com.google.android
      zzw$zzb.run
      1. com.google.android.gms.common.ConnectionResult.startResolutionForResult(Unknown Source)
      2. com.google.android.gms.common.api.internal.zzw$zzb.run(Unknown Source)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:155)
      4. android.app.ActivityThread.main(ActivityThread.java:5696)
      4 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
      2 frames