check Version Greater Than JELLY_BEAN_MR2 - Android android.system

Android examples for android.system:Os Version

Description

check Version Greater Than JELLY_BEAN_MR2

Demo Code

import android.os.Build;

public class Main {

  public static boolean checkVersionGreaterThan18() {
    return android.os.Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR2;
  }/*from  ww w.  ja v a 2  s  .c o  m*/

}

Related Tutorials