Java tutorial
//package com.java2s; //License from project: Open Source License import android.os.Build; public class Main { /** @return true if the device is the emulator, false if actual device. */ public static boolean isEmulator() { //return Build.MANUFACTURER.equals("unknown"); return ("google_sdk".equals(Build.PRODUCT) || "sdk".equals(Build.PRODUCT)); } }