Java tutorial
//package com.java2s; public class Main { public static boolean isAndroid() { return isAndroid(System.getProperty("java.vm.name")); } public static boolean isAndroid(String paramString) { paramString = paramString.toLowerCase(); return (paramString.contains("dalvik")) || (paramString.contains("lemur")); } }