I want to show countdown to a particular time in my android application by using the systems current. thanks in advance. I need to set a countdown timer that should tell how much time is left to "exact time " which is 12:30 in this code.
// start time
String string13 = date + " 06:30:00";
Date time13 = new SimpleDateFormat("MM-dd-yy HH:mm:ss").parse(string13);
Calendar calendar13 = Calendar.getInstance();
calendar13.setTime(time13);
// end time
String string14 = date + " 13:30:00";
Date time14 = new SimpleDateFormat("MM-dd-yy HH:mm:ss").parse(string14);
Calendar calendar14 = Calendar.getInstance();
calendar14.setTime(time14);
// exact time
String string15 = date + " 12:30:00";
Date Z = new SimpleDateFormat("MM-dd-yy HH:mm:ss").parse(string15);
Calendar c15 = Calendar.getInstance();
c15.setTime(Z);