Code example for Date

Methods: after

0
	 * Has this executable expired (i.e. user must download an update?) 
	 *  
	 * @return 
	 */ 
	private static boolean isExpired() { 
		Date now = new Date();
 
		// FIXME - pull this date from a prefs entry 
		Date expireDate = new Date(2010, 8, 1);
 
		return now.after(expireDate);
	} 
 
	/** 
	 * The int code we use for beta requests (FIXME, store in one common place) 
	 */ 
	private static final int REQUEST_CODE = 4403;
 
	public static void perhapsSplash(Activity context) {
		if (!isOkay(context) || isExpired()) {
			Intent i = new Intent(context, BetaSplashActivity.class);