I am creating a screen lock for android phones. If my device is connected to PC via usb, it is launching correctly. But if I unplug the usb cable and start application again, it says application unfortunately closed. Any help regarding this issue... Thanks
Asked
Active
Viewed 55 times
0
-
Please post your stack trace from LogCat. – FD_ Apr 25 '14 at 10:58
-
It is working in usb debugging mode only. After unpluging usb cable, when I launch the app from phone, it throws exception that Unfortunately Door lock has stoped.... – Nadeem Ilyas Apr 25 '14 at 11:34
-
Just leave your phone connected but launch it from the phone. – FD_ Apr 25 '14 at 12:33
-
I tried it. It is launching correctly. But when I unplug the phone and try to run it from phone, it shows exception. – Nadeem Ilyas Apr 27 '14 at 14:37