is Dalvik - Android android.system

Android examples for android.system:Os Version

Description

is Dalvik

Demo Code

import android.os.Build;

public class Main{

    public static boolean isDalvik() {
        final String vmVersion = System.getProperty("java.vm.version");
        return vmVersion != null && vmVersion.startsWith("1");
    }/*from ww  w.  j  a  v a 2s.c om*/

}

Related Tutorials