通过浏览器VS本机应用程序在Android慢touchmove投票 [英] Slow touchmove polling on Android via browser vs native app

查看:125
本文介绍了通过浏览器VS本机应用程序在Android慢touchmove投票的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我看来,iPhone捕捉touchmove事件约4倍的频率要高于Android系统。

Seems to me that iPhone captures touchmove events about 4 times more frequently than Android.

我编码在JavaScript和访问通过浏览器。据我所知,Android和iPhone使用的WebKit的 - 所以我没想到这么大的差距

I am coding in javascript and accessing through browser. As far as I know, both Android and iPhone use webkit - so I was not expecting such a difference.

有没有什么办法来增加轮询机器人浏览器?

Is there any way to increase the polling for Androids browser?

时的轮询通过Web视图的本机应用程序在Android平台?

Is the polling as slow from a web-view of a native app on Android platform?

有没有什么办法,以增加投票为Android平台的Web视图?

Is there any way to increase the polling for a web-view on Android platform?

时的投票在Android平台的本机应用程序一样慢?

Is the polling as slow in a native app on Android platform?

我知道,硬件/固件Android的不同而不同。

I know that hardware/firmware varies on Android.

我真正想知道的 - 是任何已知的方法通过Web视图,当地code或JavaScript的浏览器里面

What I really want to know - is any known method to increase the polling rate of android touchscreen via web-view, native code or javascript inside browser

推荐答案

我不是超级熟悉。不过,我或许可以帮助一些。

Im not super familiar with this. But I may be able to help some.

有没有什么办法来增加   轮询机器人浏览器?

Is there any way to increase the polling for Androids browser?

  • 如果这样,它可能会需要修改源$ C ​​$下,并重建它。

时的轮询通过Web视图慢   对Android平台的本机应用程序?

Is the polling as slow from a web-view of a native app on Android platform?

  • I don't know but, here is a link to a very simple WebTest app which just contains a WebView with javascript enabled and a dialog that asks for the URL to go to. You can use it to test this if you like. http://dl.dropbox.com/u/5724095/Android%20Apps/WebTest.apk
  • 有没有什么办法来增加   轮询在Android上的Web视图   平台?

    Is there any way to increase the polling for a web-view on Android platform?

    • 在那里似乎没有任何明显的方法从web视图提供的方法去做。如果可以的话,大概需要与web视图控件来源搞乱。

    时的投票站在本机应用程序一样慢   Android平台?

    Is the polling as slow in a native app on Android platform?

    • 如果你能给我多少电话你得到某种度量(也许每秒电话?)我可以测试对非的WebView在onTouchListener并比较两个。

    编辑:我做了一些简单的测试,每秒在非的WebView的OnTouchListener它看起来像我得到大约35-38左右调用onTouch()。为了得到这个号码我建立了一个侦听器保存在ACTION_DOWN和时间戳,然后每onTouch被调用时增加计数器,然后报告计数器是在每当当前时间为1000米利斯超过开始时间。

    I did some simple tests with an OnTouchListener on a non-webview it looks like I am getting about 35-38 or so calls to onTouch() per second. To get this number I set up a listener that saves a timeStamp in ACTION_DOWN, then increments a counter every time onTouch is called, then reports what the counter is at whenever current time is 1000 millis more than start time.

    这篇关于通过浏览器VS本机应用程序在Android慢touchmove投票的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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