get Device Model - Android Phone

Android examples for Phone:Phone Information

Description

get Device Model

Demo Code


//package com.java2s;

import android.os.Build;

public class Main {
    public static String getDeviceModel() {
        String str = Build.MODEL;
        if (str == null)
            str = "";
        return str;
    }/*from  ww w. ja v a 2s.co m*/
}

Related Tutorials