get SDK Version - Android Android OS

Android examples for Android OS:OS Build

Description

get SDK Version

Demo Code


//package com.java2s;

import android.os.Build;

public class Main {
    public static int getSDKVersion() {
        return Integer.parseInt(Build.VERSION.SDK);
    }// w ww  . j  a v  a2  s.  c o  m
}

Related Tutorials