Reputation: 7800
I am facing a strange issue. My application is using Zxing scanner. When I am running my application in emulator everything works well. But when I am installing the application in phone and when I start the scanner first time, application simply crashes. If I start the scanner second time, it works perfects. Crashing only happens when I open the application in a phone first time.
I tried to connect the phone with eclipse and directly ran the application after uninstalling previous versions. I just wanted to see the error log. But when I ran the application like that, it worked perfectly (same way it works in an emulator). Now I am really confused why this issue is happening. Please help me to find a solution.
Upvotes: 0
Views: 906
Reputation: 7800
I solved this issue by commending out the sections which calls "HelpActivity.class".
That means open CaptureActivity class in the zxing library and comment out the contents inside the method showHelpOnFirstLaunch()
I think this issue happened after the SDK and ADT updation. But the above solution solved the issue.
Upvotes: 3