asifkt
asifkt

Reputation: 623

android application running in debug mode only

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

Answers (3)

Onivas
Onivas

Reputation: 320

I had the same problem and I solved it doing as follow:

  1. I uninstalled the app from my phone
  2. ./adb kill-server
  3. ./adb start-server

Now it is working for me. Hope it helps.

Upvotes: 0

phyzalis
phyzalis

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

ackio
ackio

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

Related Questions