Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Locale; import android.os.Build; public class Main { public static boolean isEmulator() { return "sdk".equals(Build.PRODUCT) || "google_sdk".equals(Build.PRODUCT) || "generic".equals(Build.BRAND.toLowerCase(Locale.getDefault())); } }