tags:

views:

99

answers:

3

It seems like every step I take in the Android world I run into problems. Im soon up to 20 questions here on StackOverflow hehe =)

Usually, I have my HTC Hero connected to the computer via USB and I launch the application either in debug mode or in normal mode.

So, the last time I ran the app in normal mode. Then I disconnect the device (I want to try to have it "free", not connected to computer) and I start the app from the menu. When I do that I get a popup saying "Application xxx is waiting for the debugger to attach" and there it stops and eventually dies.

Why is it waiting for the debugger, when the last time I ran the app (while connected) I didnt run it as Debug?

Regards


EDIT 1: I might add this little weird fact:

If I do "Run" (green/white arrow) when the device is connected I STILl get a popup on the device saying "Application xxx is waiting for the debugger to attach"...


EDIT 2: Found this page. He restared his device and that worked for me too. Stupid not to try that right away...

+2  A: 

I assume you are using Eclipse. Are you sure you are pressing the green circle with a white arrow and not the green bug button? Try closing the project, reconnecting the Hero, open the project and click the green/white arrow.

With your Edit1 - Try uninstalling the application from the Hero and try again.

With you Edit2 - I believe that will turn off all debugging capabilities. Good luck.

fupsduck
Hey, yes Im sure I am clicking on "Run" (green/white arrow). I will do some restarts and stuff =)
Ted
I also have a Hero so I know it works - but I do sometimes have to close/open my project and occasionally restart Eclipse. Hang in there - it takes a while getting used to Android.
fupsduck
Thx, it helped after rebooting my device for some reason =)
Ted
+1  A: 

You could also try removing the android:debuggable="true" from your AndroidManifest.xml file when you want to test the application by itself. Turning off development options in the preferences menu will help also.

Austyn Mahoney
A: 

Just to close this question: I restarted the device, and that helped.

Ted