is running On Jelly Bean Or Higher - Android android.os

Android examples for android.os:Build

Description

is running On Jelly Bean Or Higher

Demo Code

import android.media.AudioManager;
import android.os.Build;
import android.util.Log;

public class Main{

    public static void main(String[] argv){
        System.out.println(runningOnJellyBeanOrHigher());
    }//  ww w  .  ja  v  a  2 s  .  c  o  m
    public static boolean runningOnJellyBeanOrHigher() {
        return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
    }

}

Related Tutorials