title: How to set expiration date in Android
body: <p>I have an Android App and I want to give it for testing purpose, after the expiration date the app has to show a dialog and block the commands.</p>
  
  <p>here my code to show dialog and block command</p>
  
  <pre><code>public void expired(){
      bt1.setEnabled(false)
      bt2.setEnabled(false)
      bt3.setEnabled(false)
      bt4.setEnabled(false)
      bt5.setEnabled(false)
  Alerts.AppExpiredMessage(Home.this);
  }
  </code></pre>
  
  <p>but How to set expiration date in Android in the form</p>
  
  <pre><code>if(appLicenseExpired){
  void expired();
  }
  </code></pre>
  
  <p>verifying that the actual date is antecedent a set expiration date(for example 3rd March 2013)??</p>