is HTC - Android Hardware

Android examples for Hardware:Vendor

Description

is HTC

Demo Code

import android.os.Build;

public class Main {

  public static boolean isHTC() {
    return getManufacturer().toLowerCase().indexOf("htc") != -1;
  }//from w  ww  .  ja  v  a 2 s .c  o m

  public static String getManufacturer() {
    return Build.MANUFACTURER;
  }
}

Related Tutorials