Get Android System version, eg: 2.3 - Android Android OS

Android examples for Android OS:OS Version

Description

Get Android System version, eg: 2.3

Demo Code


//package com.java2s;
import android.content.Context;

public class Main {
    /**/*from  w w w .j a va2  s.c o m*/
     * Get Android System version, eg: 2.3
     * 
     * @author Sean Zheng
     * @CreateDate 2013-4-23
     */
    public static String getOSVersion(Context context) {
        return android.os.Build.VERSION.RELEASE;
    }
}

Related Tutorials