Android SDK version : Version « Hardware « Android

Android SDK version

//package org.anddev.andengine.util;

import java.lang.reflect.Method;
import java.util.Scanner;
import java.util.regex.MatchResult;

import android.content.Context;
import android.os.Build;

 * (c) 2010 Nicolas Gramlich 
 * (c) 2011 Zynga Inc.
 * @author Nicolas Gramlich
 * @since 15:50:31 - 14.07.2010
class SystemUtils {
  private static final String BOGOMIPS_PATTERN = "BogoMIPS[\\s]*:[\\s]*(\\d+\\.\\d+)[\\s]*\n";
  private static final String MEMTOTAL_PATTERN = "MemTotal[\\s]*:[\\s]*(\\d+)[\\s]*kB\n";
  private static final String MEMFREE_PATTERN = "MemFree[\\s]*:[\\s]*(\\d+)[\\s]*kB\n";

   * @param pBuildVersionCode taken from {@link Build.VERSION_CODES}.
  public static boolean isAndroidVersionOrHigher(final int pBuildVersionCode) {
    return Integer.parseInt(Build.VERSION.SDK) >= pBuildVersionCode;


Related examples in the same category

1.Honeycomb version
2.Check Android build version
3.Get version information
4.Using VersionedGestureDetector
5.downloads and installs the latest version of our App
6.Get App Version Name
7.Get App Version Code
8.Get Version Name with PackageManager
9.Get Package Version Code and Name
10.Check for intallation, app name, app version, app version code
11.Get version number
12.Utility class providing array to int/long conversion for data received from devices through adb.
13.get Version Name
14.get Version Code
15.Byte value conversion