is HTC HD2 - Android Hardware

Android examples for Hardware:Vendor

Description

is HTC HD2

Demo Code


//package com.java2s;

import android.os.Build;

public class Main {
    private static final String MODEL = Build.MODEL.toLowerCase();
    private static final String MANUFACTURER = Build.MANUFACTURER
            .toLowerCase();/*from  ww w . j  a  v  a  2s  .  c o  m*/

    public static boolean isHTCHD2() {
        return MANUFACTURER.equals("htc") && MODEL.contains("hd2");
    }
}

Related Tutorials