running On Lollipop Or Higher - Android android.os

Android examples for android.os:Build

Description

running On Lollipop Or Higher

Demo Code

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

public class Main{


    public static boolean runningOnLollipopOrHigher() {
        return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
    }//from  ww w.j a  va  2 s  . co  m

}

Related Tutorials