Android lag

10 posts, 0 answers
  1. Mat-Moo
    Mat-Moo avatar
    103 posts
    Member since:
    Nov 2012

    Posted 16 Jan 2013 Link to this post

    My app feels and runs fantastic on IOS, however on every Android device I've used (HTC One X, Sansung Galaxy S1 & S3, Transformer and others) it always lags, e.g. press a button wait 1 second for anything to happen. Why is this happening?
  2. Kristian D. Dimitrov
    Admin
    Kristian D. Dimitrov avatar
    68 posts

    Posted 18 Jan 2013 Link to this post

    Hello Mat-Moo,

    First thing that comes to my mind is to try changing the Hardware Acceleration option in Properties/Android. On some devices turning it on speeds things up, but on some slows them down. If this doesn't help, could you please send us a small sample reproducing your issue, in order to be able to help you.

    All the best,
    kdimitrov
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  3. Mat-Moo
    Mat-Moo avatar
    103 posts
    Member since:
    Nov 2012

    Posted 21 Jan 2013 Link to this post

    Is it possible to send a link to my APK so you can see? Not sure it's "lag" but when I click a button there seems to be a 1 second delay (or so) before anything happens? Just noticed thay when I click on a link to the child browser it's almost instant, but when clicking an internal link (#) that is where the delays are. Almost like it's waiting to see if it's a double click or click and hold etc.
  4. Kristian D. Dimitrov
    Admin
    Kristian D. Dimitrov avatar
    68 posts

    Posted 21 Jan 2013 Link to this post

    Hello Mat-Moo,

    Debugging a specific implementation can be hard and time consuming and also we need to cooperate with Kendo team in order to help you in this case.

    That is why we need as simple as possible sample to reproduce that lag issue.

    Kind regards,

    kdimitrov
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  5. Mat-Moo
    Mat-Moo avatar
    103 posts
    Member since:
    Nov 2012

    Posted 22 Jan 2013 Link to this post

    Been playing more tonight, using a standard kendo tab app. The issue seems to be a lot more prominent on my HTC One X (4.0.4), than on a Nexus 7 (4.2), Samsung Galaxy s3 (4.1.2), Samsung Galaxy S (2.2); which seems to be the fastest (yet slowest) of all the devices. 
    https://www.dropbox.com/s/btwz8g0n4m9grxx/Video%2022-01-2013%2020%2031%2034.mov
    The first device is my HTC One X and you can clearly see how slow it is to respond vs all the other devices (sorry for the background noise... just hit mute!)
  6. Jordan
    Admin
    Jordan avatar
    197 posts

    Posted 23 Jan 2013 Link to this post

    Hi Mat-Moo,

    We manage to reproduce your findings on response times:
    HTC One X (v4.0.4) slowest
    Motorola Razr (v.4.0.4) slower
    Galaxy Nexus (v4.1.1) normal
    Samsung Galaxy S III (v4.1.2.) fast

    This is appears to be a known issue by Kendo team and is caused by Hardware Acceleration on slower devices (especially HTC One X) it makes animations smoother but there is an noticeable delay before animation starts.

    You can experiment yourself by disabling Hardware Acceleration as Kristian mentioned already folowing this steps:
    1. Device Settings > Developer options > Force GPU rendering: (unchecked)
    2. In Icenium > Project Properties > Android > Hardware Acceleration: Off
    3. Delete application from device and redeploy

    Unfortunately there is no silver bullet (settings) that will work for all Android devices. So if you ok with a bit "choppy" animation, but more responsive Android app keep Hardware Acceleration off.
    BTW: Samsung Galaxy S (2.2) is fastest probably because there is no Hardware Acceleration at all. 

    Regards,

    Jordan
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  7. Mat-Moo
    Mat-Moo avatar
    103 posts
    Member since:
    Nov 2012

    Posted 23 Jan 2013 Link to this post

    "BTW: Samsung Galaxy S (2.2) is fastest probably because there is no Hardware Acceleration at all."

    Maybe I'm mad, but that doesn't really make any sense to me? And calling the HTC One X a slow device is mad, it's quad core 1.5ghz and surfing the net is faster than running my app? 

    I might try a jquery app to see what happens
  8. Jordan
    Admin
    Jordan avatar
    197 posts

    Posted 24 Jan 2013 Link to this post

    Hi Mat-Moo,

    no you are not mad, it is not about hardware that is pretty decent for that smart phone.

    It is caused by software implementation of android 4.x webview "accelerated" rendering. More info here.

    Did you followed the instructions to disable Hardware Acceleration? As our tests confirmed that this improves the responsiveness on that particular device greatly.

    Greetings,
    Jordan
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  9. Mat-Moo
    Mat-Moo avatar
    103 posts
    Member since:
    Nov 2012

    Posted 26 Jan 2013 Link to this post

    No I haven't tried that as it's not something I can ask customers to do, so will not help. I've been reading over the net that this is quite common, and as such it seems that changing the andoid:targetSdkVersion up to 14 (Android 4 >) seems to help a lot. I thought this was a setting in Icenium but I can't find it? Would be nice to see what difference this actually makes, because if releasing a 2 versions for Android <4, >=4 helps with speed then that is acceptable.

  10. Jordan
    Admin
    Jordan avatar
    197 posts

    Posted 28 Jan 2013 Link to this post

    Hi Mat-Moo,

    the setting (Force GPU rendering) is under developer options for a reason and it dose impact some native widgets and apps same way.

    As for dual binary output for android apps we have it in our backlog but you may to post it as feature request to gather more votes from community as we take this into the account when considering what to do next.

    Have a nice and productive week,
    Jordan
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
Back to Top