Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.os.Build;

public class Main {
    private static final String[] aryDevice = new String[] { "GT-S7562" };

    public static boolean useWave() {
        boolean b = true;
        String device = Build.MODEL;
        if (device == null) {
            b = false;
        } else {
            for (int i = 0; i < aryDevice.length; i++) {
                if (aryDevice[i].equals(device)) {
                    b = false;
                    break;
                }
            }
        }
        return b;
    }
}