Here you can find the source of isEmulator()
public static boolean isEmulator()
//package com.java2s; import android.os.Build; public class Main { /** @return true if the device is the emulator, false if actual device. *//* w w w . ja v a2s.c o m*/ public static boolean isEmulator() { //return Build.MANUFACTURER.equals("unknown"); return ("google_sdk".equals(Build.PRODUCT) || "sdk" .equals(Build.PRODUCT)); } }