Is there is was to find out what android runtime version is currently used? For example, on android v4.4 you can swipe between dalvik and art and i want to find out this information in runtime.
10x.
Is there is was to find out what android runtime version is currently used? For example, on android v4.4 you can swipe between dalvik and art and i want to find out this information in runtime.
10x.
System.getProperty("java.vm.version")
- If ART is used by the system, the returned value will be either "2.0.0" or higher, meaning major versions lower than 2 will be Dalvik. This piece of insight comes from Addressing Garbage Collection (GC) Issues section of best practices for Verifying App Behavior on the Android Runtime.Code examples