Android examples for android.os:Build
is running On Jelly Bean Or Higher
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; } }