is Hua Wei G520 - Android android.system

Android examples for android.system:Os Version

Description

is Hua Wei G520

Demo Code

import android.os.Build;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Main{

    public static boolean isHuaWeiG520() {
        try {//from  w  w  w. ja  va  2s  .c  o  m
            return Build.MODEL.toUpperCase().contains("HUAWEI G520");
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }

}

Related Tutorials