Android Device Version Check checkVersion(long newVersion, String product)

Here you can find the source of checkVersion(long newVersion, String product)

Description

check Version

Declaration

public static boolean checkVersion(long newVersion, String product) 

Method Source Code

//package com.java2s;

import android.os.Build;

public class Main {
    public static boolean checkVersion(long newVersion, String product) {
        return (Build.TIME <= newVersion * 1000 && (Build.DEVICE
                .equals(product) || Build.PRODUCT.equals(product)));
    }/*from  w  ww  . j  a va  2  s  .  co  m*/
}

Related

  1. getDefaultVendor()
  2. getPhoneVersion()
  3. isJellybeanOrLater()
  4. isJellybeanOrLater()
  5. checkIncVersion(String fingerprinter, String product)
  6. getAndroidVersion()
  7. isGingerbread()
  8. isHoneycomb()
  9. isICS()