Is running On Jelly Bean MR1 Or Higher - Android android.os

Android examples for android.os:Build

Description

Is running On Jelly Bean MR1 Or Higher

Demo Code

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

public class Main{


    public static boolean runningOnJellyBeanMR1OrHigher() {
        return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1;
    }/*from w w  w .ja  v a 2  s .com*/

}

Related Tutorials