Here you can find the source of GetSdkLevel()
public static int GetSdkLevel()
//package com.java2s; import android.os.Build; public class Main { public static int GetSdkLevel() { return Build.VERSION.SDK_INT; }/* w w w . j a v a2s.c om*/ }