Java tutorial
//package com.java2s; //License from project: Open Source License import android.os.Build; public class Main { /** * * @return True if we are running on the emulator */ public static boolean isEmulator() { return Build.MODEL.equals("google_sdk"); } }