is Lollipop Or Higher - Android Android OS

Android examples for Android OS:OS Version

Description

is Lollipop Or Higher

Demo Code


import android.os.Build;

public class Main {
  public static boolean isLollipopOrHigher() {
    return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
  }/*from  w  w w  .j  av  a  2 s . com*/
}

Related Tutorials