is HTC One - Android Hardware

Android examples for Hardware:Vendor

Description

is HTC One

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  .  ja va  2  s. c o  m*/

    public static boolean isHTCOne() {
        return MANUFACTURER.equals("htc") && MODEL.contains("htc 802w");
    }
}

Related Tutorials