12345678910111213141516171819202122 |
- package com.example.myapplication.utils;
- import android.os.Build;
- /**
- * Created by zhoudongtao on 16/3/15 13:26.
- */
- public class BuildVersionUtils {
- /**
- * >=4.4 19
- */
- public static boolean hasKitkat() {
- return Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
- }
- public static boolean hasIceCreamSandwichMr1() {
- return Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1;
- }
- }
|