is NexusS - Android android.system

Android examples for android.system:Os Version

Description

is NexusS

Demo Code

import android.os.Build;

public class Main{

    public static void main(String[] argv){
        System.out.println(isNexusS());
    }/*from ww  w .j av a2s  . c o  m*/
    public static boolean isNexusS() {
        try {
            return Build.MODEL.toLowerCase().contains("nexus s");
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }

}

Related Tutorials