是的PhoneGap慢或者它是一个错误吗? [英] Is PhoneGap slow or it is a bug?

查看:151
本文介绍了是的PhoneGap慢或者它是一个错误吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我已经编译和部署演示应用到我的三星Galaxy S II,我注意到,该样品的PhoneGap应用程序附带的PhoneGap是不是很敏感,当pressing按钮和滚动。

After I have compiled and deployed the demo application to my Samsung Galaxy S II I noticed that the Sample PhoneGap App which comes with PhoneGap was not very responsive when pressing buttons and scrolling.

我还做了一个小应用程序使用的PhoneGap和jQuery Mobile的,有4个按钮,一切正常,但是当我增加了超过7岁,我视需要进行滚动,滚动变得很慢,更多的按钮/控件我曾越慢srolling了。

I also made a little app using PhoneGap and jQuery Mobile, with 4 buttons everything was ok, but when I added more than 7 and my viewport needed to be scrolled, scrolling become to be very slow, the more buttons/widgets I had the slower the srolling was.

这是一个错误具体到我的移动设备或它的PhoneGap是如何工作的: 事实上,PhoneGap的应用程序感到我的手机上,包括演示慢?

Is this a bug specific to my mobile device or it is just how PhoneGap works: The fact that PhoneGap apps feel slow on my phone including the demo?

编辑:

同样PhoneGap的应用程序从我的笔记本电脑一个HTTP服务器提供并推出了标准的Andr​​oid浏览器的工作原理非常顺利

The same PhoneGap app served by an HTTP server from my laptop and launched in the standard Android browser works very smoothly

推荐答案

尝试设置你的 targetSdkVersion 高。更改煤矿从8(即安卓2.2),以14(安卓4.0),极大地提高了PhoneGap的性能上手机运行较新版本的Andr​​oid。这很可能使某些性能增强功能,如硬件图形加速。

Try setting your targetSdkVersion higher. Changing mine from "8" (i.e. Android 2.2) to "14" (Android 4.0) dramatically improved PhoneGap performance on phones running newer versions of Android. Most likely this enables certain performance-enhancing features such as hardware graphics acceleration.

有关详细信息请参阅关于这个我在这里的其他答案: http://stackoverflow.com/a/12397768/233370

For more info see my other answer about this here: http://stackoverflow.com/a/12397768/233370

这篇关于是的PhoneGap慢或者它是一个错误吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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