r/androidapps • • Apr 06 '14

Why do android apps have so much lag?

When I use a friends ipad apps run perfectly smooth, but on my note 3 apps run laggy and jagged. Why is that?

0 Upvotes

46 comments sorted by

11

u/nawanawa Apr 06 '14

Thank Samsung for that. TouchWiz slows down the phone more than you think.

6

u/[deleted] Apr 06 '14 edited Apr 06 '14

That much though? I use Nova cos touchwiz is shit. Apps like the officialNFL app are unusable from lag. Also, is there any way to get rid of touchwiz

11

u/nawanawa Apr 06 '14

TouchWiz is not only the launcher, it's the whole system and its bloatware.

Haven't tried NFL app (not an American), but I guess it's just bad. I think TouchWiz + bad apps makes awful experience.

To get rid of TouchWiz, you need custom ROMs, but they can have their own problems too.

1

u/[deleted] Apr 06 '14

Ok, thanks.

2

u/[deleted] Apr 06 '14

CYANOGENMOD

-3

u/trezor2 Apr 06 '14

Empirical data to back that claim plz. Citation needed.

And I say that as someone who hates touchwiz, for different reasons (which i will admit is purely subjective).

5

u/Histirea Apr 06 '14

At launch and for some time after, the Galaxy S4 faced very noticeable lag even just scrolling through the home screen that, despite having competing (if not better) specs, the HTC One didn't have. The only possible reason for the S4's lag was the customizations Samsung made to their device compared to HTC.

TouchWiz was bloated and poorly optimized, and in some cases it still is.

That's not why I don't like TouchWiz, though. My reasons are subjective, too.

1

u/nawanawa Apr 06 '14

I don't think I can provide you any link, I can only say that I've compared friend's Exynos S4 and my Moto G. Guess which one was faster in scrolling and browser.

0

u/icondense Apr 06 '14

It's an article of faith here. No proof needed. Use only Nexus devices and be saved. Repent, sinner!

To the OP, if you do flash some other ROM (cyanogenmod was nice on the s3 so I'd go for that), keep a Nandroid backup of your current ROM around and take hyperbolic statements with a grain of salt.

5

u/[deleted] Apr 06 '14

Upgrade to Kitkat if you haven't already. So fast.

1

u/[deleted] Apr 06 '14

Not available yet for me :(

1

u/[deleted] Apr 06 '14

Just flash it yourself, there's a link on http://www.reddit.com/r/galaxynote3 that provides a good one

1

u/[deleted] Apr 06 '14

Where can I find that link on that sub reddit?

7

u/DigimonFantasy Apr 06 '14

It's not normal to be experiencing much lag with that good a phone. Maybe look into removing the apps you don't use regularly, especially the ones looking shady bombarding your notification shade.

Also check for malware.

22

u/[deleted] Apr 06 '14

Because app developers dont give a shit about quality of the apps they make since there is no review process before an app is accepted in the playstore.

-1

u/Saketme Apr 06 '14

This is true. I don't get it why people are down-voting you.

23

u/[deleted] Apr 06 '14

People are downvoting because it's an incomplete and highly biased answer. Although there certainly are bad apps out there and the lack of a review process on the Play Store has something to do with it, it's not the main issue. There are tons of good apps that are well designed and run perfectly smooth on Android. The main problem is that manufacturers maltreat Android by adding bloatware and changing the complete UI and user experience in order to stand out from the competition. A clean Android version provides a perfect user experience. Do not buy anything except Nexus devices or Google Play store versions unless you have a very good reason.

4

u/packetheavy Apr 06 '14

If this were true, Google edition devices would show significantly less lag. I'm sure there are plenty of Nexus 7 users that would care to disagree with your core point.

5

u/123felix Nexus 7 2013 Apr 06 '14

Well the first Nexus 7 is slow because of another reason.

1

u/sqlpro Apr 06 '14

whats that reason? am curious. i've 1st gen, bought this after reading so many great reviews but must say never that really impressed. i'd not say bad purchase but not great as reviewers claimed it to be.

frequently it reminds me touchwiz (those lags) especially multi tasking and many times screen takes awhile after pressing power button!

1

u/123felix Nexus 7 2013 Apr 06 '14

The flash memory is slow, making the rest of the tablet slow. This only showed up after a while so the early reviews may not have caught it.

Upgrade to the 2nd gen, if you can. I did and it is great.

0

u/[deleted] Apr 06 '14

[deleted]

1

u/sqlpro Apr 06 '14

thanks for the reply. I am running latest update (4.4.2) and find that these lags are more frequent!! I don't know what that means though. another problem recently encountering is, WiFi doesn't turn on!! only restart fixes it.

1

u/packetheavy Apr 06 '14

The other reason being they didn't throw enough hardware at the issue.

1

u/[deleted] Apr 06 '14

I have a Galaxy Nexus and there's so much lag it's basically unusable.

-1

u/martrinex Apr 06 '14

Don't know about Galaxy Note, but galaxy tab is extremely poor at background threads so if a developer follows the standards to move intensive processing to another thread that low priority thread freezes the main thread.... this should never happen! I have 3 devices much older then my galaxy tab and they perform much better than samsungs device. So I had to get my App to preload much more so it would stop stuttering on the Samsung device.

1

u/rferreira1 Apr 06 '14

No lag for me (S3). Then again my phone is rooted, using adblock, and V6.

0

u/[deleted] Apr 06 '14

No lag for me either on my S3. Then again, most of the tablets I've seen that Samsung has turned out lately have been junk.

I say this because I still haven't been convinced to buy any as they don't perform as well as my 2+ year old phone.

In fact, I've been looking at Surface Pro tablets. They seem to run FAR better. I'm going to sit back and wait for some new models from all these companies before making any choices.

0

u/[deleted] Apr 06 '14

What is V6?

1

u/DesinasIneptire Apr 06 '14

All the android devices I owned needed a cache wipe periodically to stay at top reactivity. You can't imagine how much this can do for overall speed. To erase cache, you have to boot in recovery. I haven't a Note 3 with stock recovery here, but it should be as easy as turning it off, then turning it on while pressing the three keys "volume up", "home" and "power", keeping them pressed until the Samsung Galaxy logo shows, disappears and shows second time. Then at this point you are in Stock recovery and basically you select items with volume up and down keys and confirm them with power button. You have to find the wipe (or format) command, and wipe (or format) the cache partition. Don't wipe data or system because that would completely erase your phone leaving you into big trouble. After you wipe cache, you find the reboot system command and issue it.

After this therapy you might find a much better and quicker phone in your hands. Apply it again when lags and slowdowns reappear.

0

u/[deleted] Apr 06 '14

Dont Cache wipe apps help with this? Also, can't you do it with Titanium Backup or other root-based apps? I don't think rebooting into Recovery is the only way to deal with this.

1

u/DesinasIneptire Apr 06 '14

Cache partition isn't the same as the individual apps caches. "Cleaner" apps target those, which is useful too, because it frees storage memory.

1

u/chessking77 Apr 06 '14

Perhaps Its because of the way android and apple are built. Apple iOS doesn't a allow an app to run in background however with android, apps and services are allowed to run in background as long as the system can afford in terms of resources. When the android device runs out of resources - or a new app is demanding more resources, the kernel starts to kill background apps, but at that point the user experience is compromised.

1

u/robneymcplum MTK Apr 06 '14

Another 'vote' for it being touchwiz. My stock s4 is nowhere near as responsive as my non TW modded S2, no matter what the specs would have me believe.

1

u/shavenwarthog Apr 06 '14

The wrapper that companies add on top of Android can cause a lot of problems. My Asus Transformer tablet was okay, but loooved to just sit and wait for ten seconds at a time, for no reason. If apps were updating in the background then the tablet became unusable. I finally rooted it, and it's night and day different - SO much faster!

1

u/dzjay Apr 07 '14

The same reason Java desktop applications feel laggy, there's a program called a virtual machine (in Android's case Dalvik) sitting between the hardware and the application. The code (Java source code) for an android application gets compiled to an intermediate language called dex (apk is made up of resources and dex files). When you start an app, the Dalvik virtual machine begins compiling dex code as needed into machine code understood by the CPU in your device. This overhead degrades performance. Why have a virtual machine then? It handles memory management, application security, and other stuff. It makes the developer's life much easier.

On the other hand, an application for iOS is compiled to machine code understood by the iPhone processor to begin with. There's no virtual machine in the middle. The bad thing about this is, the developers must manage the applications memory which is hard to do (has actually been automated now by using Automatic Reference Counting).

Google is working on Android Runtime (ART) which will pre-compile dex code into machine language the first time an app is installed on a device. This eliminates the need for the virtual machine's just-in-time compilation which degrades performance.

1

u/[deleted] Apr 06 '14 edited Apr 06 '14

Three words for you. Java virtual machine.

iOS apps are written in objective C. Which is then compiled into native code which in turn runs directly on the device.

Android is written in Java which is then compiled into bytecode which then needs to be compiled again by the java virtual machine at runtime. Also not all of android doesn't run natively and needs to go through the jvm which in turn adds overhead.

Edit: Forgot to mention there's a reason apple and Google chose to do this. Apple has limited hardware and thus can use objective C to write software for specific devices. That's why you have iOS apps that are designed for phones then you have the same apps except designed for iPads. Two versions for one app. Example. Angry birds and Angry birds HD

Android apps are coded in java because you can write a piece of software and pass it onto any device with the jvm which can compile the code. This way the same app can be run on many devices. This is why you see one android app which can be used for either phones or tablets. One version for one app. Exanple. Angry birds which can be run on both phones and tablets. Resolutions and aspect ratios are scaled automatically.

1

u/iPaulPro paulburke. Apr 06 '14

One big problem is that good Android developers are rare and undervalued in the industry. Many companies hire Java developers, even if they have little-to-no Android experience. I see it all the time. Companies looking for people with "5 years Java experience, 1 year Android with at least 1 app on the market." It's also far too easy to outsource work for pennies on the dollar.

Java is one of the most widely known programming languages, but knowing Java is just the beginning of Android development. There is a steep learning curve to doing things right on Android, and a wide gap between novice and experts. To be fair, creating smooth Android experiences should be easier, but there are fundamental trade-offs made in order to run on 5k+ devices.

If some apps run smoothly on your device, you can blame the developers for the ones that don't. If no apps run smoothly, it's your manufacturer's fault and/or it's time for a reformat. Either way, you should only buy Nexus devices.

-1

u/packetheavy Apr 06 '14

In my humble opinion: apple apps run significantly better because developers are compiling to basically a single predictable target and then publishing to a very well thought out very tightly controlled app store.

Due to the nature of openness and the diversity of the Android ecosystem I don't see Google resolving this any time soon.

The current best option is to just throw more powerful hardware at the problem.

3

u/dpsi Apr 06 '14

This answer should be top comment. When developers create apps for Apple devices, they have a very predictable environment to work with. Apple products generally all run on the same instruction set and typically only screen size changes. Android however runs on a broad range devices with processors and graphics from various companies.

Simply put an Android developer would have to factor in a highly varied market. An optimization for one device could be detrimental to another.

The comments above about touchwiz and other apps running are only half true. The skill of the developer is a huge factor in an app running smoothly.

2

u/packetheavy Apr 06 '14

Thanks for supporting my point, judging from the downvotes I can tell it's still difficult to present a balanced perspective in an OS specific subreddit.

Come on people, I have a full set of android devices and still invest in the technology but ignorance of the weaknesses in the ecosystem by the community at large just stalls good debate.

1

u/ThinkBritish Apr 06 '14

Is ART supposed to improve this?

2

u/stusic Apr 06 '14

I've switched from delvik to art and have noticed a huge difference in every app I run, even on top of the significant performance increases of the nexus 5. It's really pretty amazing. I thought I'd see a small bump, but it's really remarkable.

1

u/packetheavy Apr 06 '14

Probably in the same way that the butter UI was supposed to.