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.