How to force Eclipse to restart an app that has not changed

Viewed 1842

Is there a way to force Eclipse to restart an Android app that has not changed, even if it has to be re-downloaded and reinstalled?

I am in a situation where I'm running an Android app that does stuff on startup that I need to repeat for debugging purposes.

What I would like to do is click the "Run" button in Eclipse and have it force restart my app each time. But instead, Eclipse/Android tries to be smart and it just brings my app to the front without restarting. I get a message in the console:

ActivityManager: Warning: Activity not started, its current task has been brought to the front

The only workaround I have found is to make dummy text changes to force a recompile/re-install. But that's kind of annoying, especially with the code under revision control.

3 Answers
Related