Reputation: 623
Friends, my android application runs in debug mode only even if i click the run button of the eclipse or run it by touching on its icon on the device. what will be reason for this?? anybody has any idea about it??
Upvotes: 5
Views: 6074
Reputation: 320
I had the same problem and I solved it doing as follow:
Now it is working for me. Hope it helps.
Upvotes: 0
Reputation: 1226
It is a little late but maybe this may help someone.
What worked for me was to reboot the device through adb like this run adb reboot
Rebooting the phone by myself didn't work before that
Upvotes: 3
Reputation: 662
Is it working if you uninstall your app and click the run button of the eclipse? If yes, probably the reason is that android keep some data in memory even if you close the app, especially it's concerning static members, or references which are not freed by GC. Under debug you get the new instance of your app and it's working as it's when you uninstall/install it. When you click the run button of the eclipse the app might not be installed again and some data will be reused. You should carefuly manage your app data. Firstly read this article
Upvotes: 2