This is a migrated thread and some comments may be shown as answers.

Android lag

9 Answers 172 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mat-Moo
Top achievements
Rank 1
Mat-Moo asked on 16 Jan 2013, 08:03 PM
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?

9 Answers, 1 is accepted

Sort by
0
Kristian D. Dimitrov
Telerik team
answered on 18 Jan 2013, 02:45 PM
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.
0
Mat-Moo
Top achievements
Rank 1
answered on 21 Jan 2013, 11:21 AM
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.
0
Kristian D. Dimitrov
Telerik team
answered on 21 Jan 2013, 01:34 PM
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.
0
Mat-Moo
Top achievements
Rank 1
answered on 22 Jan 2013, 08:55 PM
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!)
0
Jordan
Telerik team
answered on 23 Jan 2013, 03:47 PM
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.
0
Mat-Moo
Top achievements
Rank 1
answered on 23 Jan 2013, 09:05 PM
"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
0
Jordan
Telerik team
answered on 24 Jan 2013, 08:28 AM
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.
0
Mat-Moo
Top achievements
Rank 1
answered on 26 Jan 2013, 04:33 PM
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.

0
Jordan
Telerik team
answered on 28 Jan 2013, 06:11 AM
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.
Tags
General Discussion
Asked by
Mat-Moo
Top achievements
Rank 1
Answers by
Kristian D. Dimitrov
Telerik team
Mat-Moo
Top achievements
Rank 1
Jordan
Telerik team
Share this question
or