I have a little problem with Android, I have a requirement that the timer calculates the duration from the moment a certain activity is opened until a certain button in this activity is pressed, just how long the activity has been open. While googling around I found TimerTask, but it seems to start the thread at a certain interval only, although it doesent seems ideal for working from my little Android experience.
Any idea on how to calculate the duration? Preferably in a very simple way.
Any help is greatly appreciated.
Regards, MilindaD
java android time duration
MilindaD
source share