Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I read about ART on some blogs and decided to try it myself. I have a Motorola Moto G and enabled ART on my phone. After that every game which I had already installed (Asphalt 8 and EA's Real Racing) or installed after enabling ART crashes just after starting.

Also, from the blogs, there were two things that caught my attention about ART, which were improved battery life and low RAM consumption. I can't say any thing about the battery life but RAM consumption was almost same and in fact phone was lagging.

Does that mean ART is not suitable for my device as it is optimized for the Dalvik VM?

share|improve this question

migrated from superuser.com Apr 23 at 6:39

This question came from our site for computer enthusiasts and power users.

1  
Did ART (Android Run Time) come out of the experimental (beta) stage yet? Myself i would not expect it to work for older stuff completly just yet, and some older complex apps might have to have some code changed? –  Psycogeek Apr 23 at 6:37
3  
@Psycogeek Nope, not yet. –  Sathya Apr 23 at 6:39
    
Do you have Xposed Framework installed? –  geffchang Apr 23 at 11:55
    
That's pretty odd; I have a Nexus 5 with ART enabled and I never have any uncommon issues, even on games I've published. –  dev_feed Apr 23 at 20:01

2 Answers 2

ART is still experimental. It's not ready for end-users yet: it's only included at all so developers can find problems with their own apps. It doesn't surprise me at all that games that make heavy use of native code don't work with ART.

You should ignore anything people say about the performance characteristics of ART, for the same reason. It could get twice as fast or twice as slow (or more) before it's finally released and activated for all users, so the performance of the experimental version is only relevant for those engineers in Google who are trying to make it faster.

share|improve this answer

ART is still in development stage.

Difference between Delvik and ART:

When android app is installed, the Delvik Virtual Machine is used to compile and run the app. The compiled app is loaded in the RAM. When the app is closed and reopened the process has to be redone. This method is called JIT (Just In Time)

In ART unlike compiling every time, when the app is installed it is precompiled and will be stored in the device itself. This is called AOT (Ahead Of Time) This takes more space of your device and time to install.

However this has a added advantage. Since the apps are precompiled, android need not do the process again again thus saving processor and cpu and the app will launch faster.

But since ART is in development phase some of the apps will not work or crash or force close.

To find the app which are compatible with art go here

The detail explanation of delvik and art can be found here

share|improve this answer
4  
It's a bit misleading to say the app developers have to "code for ART". In fact, it's ART that needs to be fixed; very few apps should need to change. –  Dan Hulme Apr 23 at 10:06
    
@DanHulme I think it is both that need to be fixed –  sameer Apr 23 at 11:17
1  
That's an interesting theory. If it were true, I'd expect Google to be telling app developers to update their apps now, and I'd expect a lot of disappointed users when ART becomes the default in 4.5. –  Dan Hulme Apr 23 at 12:19
1  
Ok, I have to ask, developers might not have to re-code everything for it, but many developers are using a lot of cheap tricks to do cool stuff, and that doesnt always follow the rules. So might it be that some apps would have to change to get everything stable, beyond Art actually working? –  Psycogeek Apr 24 at 10:37
1  
@Psycogeek :Do you really think that developers @ Gameloft or EA would use cheap tricks to do cool stuff?..what if google rolls out final version of ART in 2 months and those games still crashes?..All i am saying is..why games like asphalt8 and real racing crashes on ART and some smaller games like 2048 works perfectly?..even most commonly used apps like facebook and whatsapp works perfectly ... –  vatsal May 6 at 5:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.