title: How to Show Message when reached to date
body: <p>I am writing a small CountDown program, and i found one of the SO link helpful for me to get code, but i have a small query How to show Message when countdown reached to date we mentioned.</p>
  
  <pre><code>public class MainActivity extends Activity {
  
  String time1 = "14-02-2015 12:01:00";
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      tv=(TextView)findViewById(R.id.textView1);
      final Handler handler = new Handler();
      handler.postDelayed(new Runnable() {
  
          @Override
          public void run() {
              Calendar start = Calendar.getInstance();  
              String time = "dd-MM-yyyy hh:mm:ss";
  
              String dateStart =(String) DateFormat.format(time, start);                          
              String dateStop = time1;
  
  
               SimpleDateFormat format = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");  
              // Custom date format
              java.util.Date d1=null;
              java.util.Date d2=null;
                try {
                      d1 = format.parse(dateStart);
                      d2 = format.parse(dateStop);
                  } catch (java.text.ParseException e) {
                      // TODO Auto-generated catch block
                      e.printStackTrace();
                  }
  
  
              long diff = d2.getTime() - d1.getTime();
  
              long diffdays    =(diff/ (1000*60*60*24));
              long diffHours = ((diff - (1000*60*60*24*diffdays)) / (1000*60*60));                             
              long diffMinutes = (diff - (1000*60*60*24*diffdays) - (1000*60*60*diffHours)) / (1000*60);  
              long diffSeconds =(diff - (1000*60*60*24*diffdays) - (1000*60*60*diffHours) -(1000*60*diffMinutes))/ (1000);                
  
              String out= 
                      "Days: "+diffdays+
                      " Hours: "+diffHours+
                      " Minutes: "+diffMinutes+
                      " seconds: "+diffSeconds;
              tv.setText(out);
  
              handler.postDelayed(this, 1000);
          }
      }, 1000); 
    }
  }
  </code></pre>
  
  <p>I want to show message "Happy Valentines Day" in same TextView when reached to date</p>