Android Performance and glitches

98 views
Skip to first unread message

Wendel de Witte

unread,
May 22, 2013, 6:22:22 AM5/22/13
to phon...@googlegroups.com
Hi,

I have developed several HTML5 mobile apps and they all work smooth on the iphone 4 and higher.

but.. Android is always trouble. It is easy for the user to detect that it is not native. The scrolling is slow, strange focus bugs with input fields, keyboards which overlaps inputs, slow transitions between screens etc.  I'm testing on low and high end devices. The Gs3 acts like a drunken turtle compared to the Iphone when running a WebApp.

Am I the only one, what is your experience?

Does phonegap use the stock browser on android or its own webkit based browser?

-Wendel



Simon MacDonald

unread,
May 23, 2013, 8:02:53 PM5/23/13
to phonegap
PhoneGap uses the Android WebView class which is based off of the
Android stock browser.

Chrome > Android Stock Browser > Android WebView

We've been hoping for the WebView to get better for quite a while now
but I/O has come and gone without any announcements.

Simon Mac Donald
http://hi.im/simonmacdonald
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
> To compile in the cloud, check out build.phonegap.com
> ---
> You received this message because you are subscribed to the Google Groups
> "phonegap" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phonegap+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

duke

unread,
May 24, 2013, 1:22:03 PM5/24/13
to phon...@googlegroups.com
It takes a bit of patience, and hackery to get things to work well on the Android.  One thing you want to stay clear of is hardware scrolling, it will be slow as snails on most Android devices.  This works fine on the iphone, but on Android devices you will want the page scrolling so let the body tag go as long as it needs to and that scrolling works just fine on the Android.  I have probably 2 dozen or more if statements in my code for Android vs. iPhone.  

duke

unread,
May 24, 2013, 1:23:31 PM5/24/13
to phon...@googlegroups.com
By the way you can check out our app in the Google Play store to see how it works on Android.  Search for Privix.

Wendel de Witte

unread,
May 28, 2013, 9:47:49 AM5/28/13
to phon...@googlegroups.com
In my case android:hardwareAccelerated="true" works fine and hardware scrolling gives forms an unwanted game effect of jumping input fields..

At the end, you get it working but without a good feeling, it is unreliable.

I don't think it will change anytime soon and if we get the chrome version as webview component then it will likely only work on the latest androids.

A good solution would be to ship a webview component with the android build of phonegap. I wouldn't mind the 40mb extra load and less features.

Is the PhoneGap team considering this path? A webview based on Firefox Mobile would be a good start.


Op vrijdag 24 mei 2013 19:23:31 UTC+2 schreef duke het volgende:
Reply all
Reply to author
Forward
0 new messages