Java tutorial
//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))); } }