如何强制Eclipse来重新启动并没有改变一个应用程序 [英] How to force Eclipse to restart an app that has not changed

查看:159
本文介绍了如何强制Eclipse来重新启动并没有改变一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法来强制Eclipse来重新启动一个Android应用程序,并没有改变,即使它必须重新下载并重新安装?

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?

我是在一个情况下,我运行一个Android应用程序,并在启动时的东西,我需要重复进行调试。

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.

我想要做的就是点击Eclipse中的运行按钮,并迫使它重新启动我的应用程序每次。但是,相反,Eclipse的/ Android的尝试是聪明的,它只是使我的应用程序前无需重新启动。我得到的控制台消息:

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

我发现的唯一的解决办法就是让虚拟文本更改强制重新编译/重新安装。但是,这是一种恼人的,尤其是在版本控制的code。

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.

推荐答案

这个懒惰的工作是把一个空间字符,保存,删除字符,保存和重建。正如我所说的懒惰(快速)的工作。

The lazy work is to put a space char , save it, delete the char, save it and rebuild. As i said the lazy (fast) work..

这篇关于如何强制Eclipse来重新启动并没有改变一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆