is HTC Build - Android Hardware

Android examples for Hardware:Vendor

Description

is HTC Build

Demo Code


//package com.java2s;

import android.os.Build;

public class Main {
    public static boolean isHTC() {
        boolean ishtc = false;
        if (Build.MODEL.contains("htc") || Build.MODEL.contains("HTC")) {
            ishtc = true;/*www.  ja v  a2s .co m*/
        }
        return ishtc;
    }
}

Related Tutorials