Slow Apps on Android?

1,165 views
Skip to first unread message

Horst

unread,
Jan 31, 2011, 8:16:27 AM1/31/11
to phonegap
Hello,

i have done 2 simple apps with phonegap on android. They are working,
but iam not really happy with the speed. I know this is no special
phonegap issue, it is the browser which makes the problems. I have
also tried without phonegap as an webview app, but its less stable
than using phonegap. So i dont want blame phonegap. Its a great
project.

I am using a HTC Desire and a ZTE Blade for testing. The Blade has a
much slower CPU and android 2.1. So javascript is really unusable
slow. But on the Desire it isn't much better.

Are i am the only one with this problem? Can anyone tell me a phonegap
example app for android, wich does something more on the screen and
runs fast?
Is there a trick?

I think webkit on the iphone is much faster. Is this true?

BTW: In one app i have 3 simple input fields for values. But they are
working not very good. Sometimes onscreen keyboard isnt shown,
sometimes the fields loose focus when entering something and so on. I
have no idea how i can improve that.

best regards
Horst

Simon

unread,
Jan 31, 2011, 10:11:10 AM1/31/11
to phonegap
Hi there,

Yes, I have had a lot of issues with running apps on Android also.
The iPhone has hardware acceleration and the Android devices out there
don't (until Gingerbread I believe, could be wrong). I found the more
complex the app the slower and slower it would get until finally it
would be unusable. Had one app with over 30 pages, ajax web service
calls, onboard html5 database, transitions, etc... which worked okay
on the iPhone and Safari. When running on an Android device it just
ground to a halt. We removed all the goodies like Floaty and all the
webkit transitions and animations and it performed 200% better. You
can add hardware detection into the app to see what hardware it is
running on and then scale your app accordingly.

For 3 simple input fields you should be a-okay, there must be
something else going on there causing the issue for you. How many
pages are in the app, are you using jquery or any other plugins,
etc...?

Simon.

Furqonuddin Ramdhani

unread,
Jan 31, 2011, 8:57:23 AM1/31/11
to phon...@googlegroups.com
 I having this probem too, my app running sluggish on android but on my iphone running smooth . I believe the problem is javascript performance on android was poor.  is there any tips for dealing with this problem ? thx

ps : I'm using sencha touch


--
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



--

Horst

unread,
Feb 1, 2011, 9:48:19 AM2/1/11
to phonegap
Thank you for your feedback (and Furqonuddin Ramdhani, too). I don't
use any javascript framework. I have converted my bmi calculator from
http://www.bmi-club.com/body-mass-index.html into an app. It makes
nothing special. 3 sliders and 3 input fields. The normal browser
version is fast in every browser. So i am wondering about the bad
perfomance on my HTC Desire.

I am now thinking of buying a mac and develop for iOS. Because i have
become a real big fan of javascript and html development in the last
years. ;-)

best regards
Horst

Alex

unread,
Jun 29, 2011, 4:27:26 PM6/29/11
to phon...@googlegroups.com
Hi
My app works well whe I access it through the browser. It is extremely sluggisch though when started as an app.
Using jQuery mobile wicht CouchDB.
Alex

jacco

unread,
Jun 30, 2011, 6:44:01 AM6/30/11
to phonegap
I've found that as soon as the DOM gets a tad heavy, things slow down
considerably on an Android phone.
Best way to go about is to destroy elements as soon as you no longer
need them ( read: no longer visible on the screen)
and recreate them when needed. Makes all the difference.

Björn Nilsson

unread,
Jun 30, 2011, 4:44:15 PM6/30/11
to phonegap
I my experience, unaccellerated rendering and a slow DOM is the
problem on Android. JavaScript itself is plenty fast (but whats the
use...)

This is why you sometimes see misguided benchmarks claiming that
Android Browser is faster than Mobile Safari.

Sadly there is no indication that this will improve soon.

Star this bug and maybe Android Browser will be fast some day:
http://code.google.com/p/android/issues/detail?id=17352

/Björn

Alexander Gabriel

unread,
Jun 30, 2011, 6:48:04 PM6/30/11
to phon...@googlegroups.com
stared and commented. Very frustrating
Alex

2011/6/30, Björn Nilsson <bni...@gmail.com>:

> --
> 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
>


--


*****************************************************************

Alexander Gabriel
Wiesenstrasse 22
8800 Thalwil
079/ 372 51 64
al...@barbalex.ch
ww.barbalex.ch

Reply all
Reply to author
Forward
0 new messages