-
Notifications
You must be signed in to change notification settings - Fork 573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode #2
Comments
Thanks a lot! This library has only been tested in normal
So we'll just have to change the hard-coded request code to a lower value. |
Nice that you realized that it was related to Fragments (I didn't know that)! Not sure if this is also related, but fragments "public void onActivityResult (int requestCode, int resultCode, Intent intent)" won't get called, so one has to forward from the parent activity to the correct fragment. (I'm not very experienced Android developer so not sure what the correct/expected behaviour should be in that scenario) |
The issue should have been fixed with the following commit now: 90c3937 Can you please try the updated JAR and report if it works? Regarding your other issue, please make sure that you don't call |
It seems to work, thank you! Regarding my other issue. I'm never calling the ActionBarActivity.java:
|
You're right, sorry. So |
@ocram I am working on google fit api integration in my android application , i am getting following error , i used fitness dependency. Process: com.alaramdemosample, PID: 16857 Please help me. |
This error is thrown when pressing an upload field (input type='file'). The error is quite straight forward and is probably easily fixed. (Android 4.2 and 5.0.1 tested)
java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:815) at im.delight.android.webview.AdvancedWebView.openFileInput(AdvancedWebView.java:396) at im.delight.android.webview.AdvancedWebView$2.openFileChooser(AdvancedWebView.java:243) at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:844) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5039) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method)
The text was updated successfully, but these errors were encountered: