Google added a new ART runtime with Android 4.4. How can I determine whether ART or Dalvik is the current runtime?
A simple solution :
String vm = System.getProperty("java.vm.name") + " " + System.getProperty("java.vm.version");
On my Android 8.0 (API 26) phone, it returns Dalvik 2.1.0 .