I’m trying to countdown from a start date to an end date. For example, on 12 October 2012 to 14 October 2012.
I would like to get the current date and from this date do the countdown to the next.
Do you have any good examples?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This might prove too inflexible a solution but you could try converting the dates to long values, subtracting one from the other, and then using the android countdown timer class to do your countdown.
more information about the class can be found here:
http://developer.android.com/reference/android/os/CountDownTimer.html