安卓:与应用程序的新版本重新启动正在开发中重新启动、新版本、应用程序

2023-09-06 19:25:57 作者:Ronin (浪人)

我是新来的Andr​​oid所以请尽可能明确。我试图创建一个新的活动。问题是,当我从Eclipse运行模拟器,给我的老版我的应用程序。我想这是仍在运行。有没有办法迫使我新的应用程序的重新安装/重新启动?我读过有关的生命周期,这可能与这...但不能肯定。

I'm new to Android so please be as explicit as possible. I'm trying to create a new activity. the problem is that when I run the emulator from eclipse, I get the old version of my app. I guess it's still running. Is there a way to force a fresh install/restart of my new app? I've read about the life cycle, and this might be related to that... but not sure.

我怎么可以让测试我的应用程序,而我发展,获取最新的我的code版本的模拟器?

How can I keep testing my app while I'm developing, and get the most recent version of my code on the emulator?

任何帮助将AP preciated。

Any help will be appreciated.

推荐答案

刚刚从Eclipse中运行应用程序和新版本将被推到仿真器和武力停止或替换旧版本。需要注意的是,如果有任何编译错误,也不会去做。如果你只是从AVD管理启动模拟器,或者只是运行模拟器启动应用程序只会有你推到仿真器的最后一个版本。

Just run the app from eclipse and the new version will get pushed to the emulator and force stop or replace the old version. Note that if there are any compile errors, it will not do it. If you just launch the emulator from the avd manager, or just run the app from the emulator launcher it will only have the last version you pushed to the emulator.

您不需要重新启动模拟器或任何东西。

You don't need to restart the emulator or anything.