has Froyo - Android Android OS

Android examples for Android OS:OS Version

Description

has Froyo

Demo Code


//package com.java2s;

import android.os.Build;

public class Main {
    public static boolean hasFroyo() {
        // Can use static final constants like FROYO, declared in later versions
        // of the OS since they are inlined at compile time. This is guaranteed behavior.
        return Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO;
    }/*  w  ww  .j av a  2 s .  co m*/
}

Related Tutorials