How can I detect the Android runtime (Dalvik or ART)?
Google added a new ART runtime with Android 4.4. How can I determine whether ART or Dalvik is the current runtime? Update At least, as early as June 2014 Google has released an official documentation on how to correctly verify the current runtime in use : You can verify which runtime is in use by calling System.getProperty("java.vm.version"). If ART is in use, the property's value is "2.0.0" or higher. With that, now there is no need to go through reflection and simply check the corresponding system property: private boolean getIsArtInUse() { final String vmVersion = System.getProperty("java