模拟器和手机哪个靠谱?

发布于 2024-12-06 13:14:35 字数 174 浏览 0 评论 0原文

我的应用程序几乎完成了......当我在模拟器上运行它时,在某些时候, 它非常慢,而且我所看到的是不可取的..当我在手机上运行相同的内容时(xperia X8) 效果很好。 我真的尝试理解为什么会发生这种情况,但无济于事! 我现在该怎么办?运行更多测试并尝试优化或只是 发布到市场上吗? 我所看到的是预期的吗?任何信息将不胜感激

I am almost done with my app..when i run it on the emulator ,at certain points,
it is very slow and what i see is undesirable..when I run the same on my phone (xperia X8)
it works fine.
I really tried understanding why this is happening but of no avail!
What should I do now? run some more tests and try optimizing or just
release it in the market?
Is what I am seeing expected? Any info will be appreciated

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

十秒萌定你 2024-12-13 13:14:35

你真的应该尽可能多地购买 Android 手机。您绝对应该拥有一部带有物理键盘的手机、一部平板手机以及一部用于您支持的最低 API 的手机。就我个人而言,我使用 G1、Droid 和 Nexus S 来测试我的应用程序。它比模拟器快得多并且更易于使用。由于应用程序位于实际硬件上,因此它也是衡量应用程序工作方式的更好指标。

You really should buy as many Android phones as you can. You definitely should have one with a physical keyboard, one slate phone, and one for the lowest API you are supporting. Personally, I have G1, Droid, and Nexus S that I test my apps on. Its so much faster than the emulator and easier to use. Its also a better metric of how your app works due to it being on actual hardware.

看海 2024-12-13 13:14:35

模拟器总是比真实设备慢(很可能比任何真实设备慢),所以不必太担心。

然而,由于它的速度很慢,它可以突出显示您可能需要花一些时间优化代码的区域,而这些区域不一定在您的硬件上找到。对于 CPU 功率、资源和可用电力有限的便携式设备尤其如此。

可能值得尝试找出导致模拟器速度变慢的原因 - 如果它足够规律并且伴随着(例如)高 CPU 使用率,那么虽然物理设备可以更好地处理它,但您可能会发现您不必要地消耗了资源电池电量,您的用户可能不会为此感谢您。

The emulator will always be slower than a real device (most likely, slower than any real device), so don't worry too much about it.

However, due to it's slowness, it can highlight areas where you may want to spend some time optimising your code that you may not necessarily find on your hardware. This is especially true on portable devices with limited CPU power, resources, and electrical power available.

It may be worth trying to find out what is causing the slowdowns in the emulator - if it's regular enough and accompanied by (for example) high CPU usage, then while a physical device may handle it better, you may find that you are unnecessarily consuming battery power and your users may not thank you for that.

很酷又爱笑 2024-12-13 13:14:35

模拟器通常比物理设备慢得多,因此这对您的应用程序来说不是问题。只要它在你的手机上运行良好就应该没问题。

The emulator is generally much slower than a physical device, so it's not a problem with your application. As long as it runs well on your phone it should be fine.

泛滥成性 2024-12-13 13:14:35

我同意德博所说的一切。至少在撰写本文时,模拟器的用途有限。谷歌已经承认当前模拟器的局限性,并表示他们正在努力改进它。但在那之前。坚持硬件测试。

I agree with everything dbaugh said. At least at the time of this writing, the emulator is of limited use. Google has acknowledged the limitations of the current emulator and indicated they are working to revamp it. But until that happens. Stick to hardware testing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文