numbgk / android-zxinglib

Automatically exported from code.google.com/p/android-zxinglib
0 stars 0 forks source link

IntentIntegrator fails with Fragment Activity #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using provided jar with FragmentActivity.

What is the expected output? What do you see instead?
It gives a "java.lang.IllegalArgumentException: Can only use lower 16 bits for 
requestCode"

What version of the product are you using? On what operating system?
Version 1.1, on Android 2.2+

Please provide any additional information below.

More details can be found here:
http://code.google.com/p/zxing/issues/detail?id=958

It wouldn't happen if jar was built with a different REQUEST_CODE in 
IntentIntegrator, using only upper 16 bits as REQUEST_CODE.

Original issue reported on code.google.com by jorge.op...@gmail.com on 11 Dec 2012 at 12:01

GoogleCodeExporter commented 9 years ago
I'm sorry, I didn't see the type and priority part when entering the issue. 
It's probably noa a defect, and priority is very low.

Original comment by jorge.op...@gmail.com on 11 Dec 2012 at 12:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I think I have fixed the problem. At least it is working in my app  with 
fragments. I have put the library up on github you can just import it into 
eclipse and make it a library. https://github.com/dtgillis/zxingLibrary

Original comment by endeavor...@gmail.com on 12 Dec 2012 at 1:54

GoogleCodeExporter commented 9 years ago
Yes, it works now. Thnk you very much.
Just a question: Do I have to mark this as solved or something? If so, how do I 
do that?

Original comment by jorge.op...@gmail.com on 12 Dec 2012 at 11:57