Android OS Version Get getOSVersion(Context context)

Here you can find the source of getOSVersion(Context context)

Description

Get Android System version, eg: 2.3

Declaration

public static String getOSVersion(Context context) 

Method Source Code

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

public class Main {
    /**//ww  w.  j av a  2s  . co 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;
    }
}