Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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()));
    }
}