解决方法
我建议使用Calendar类,并让您的应用程序在您的OnResume(s)中检查当前日期的有效期.
代码看起来像这样:
protected void onResume() { super.onResume(); Calendar expirationDate = Calendar.getInstance(); expirationDate.set(2009,7,3); //hardcoded expiration date Calendar t = Calendar.getInstance(); //Calendar with current time/date if (t.compareTo(expirationDate) == 1) finish(); }