I got one time from the server. This time saved in a array and I show this time in TextView with this code in adapter:
txttime.setText(time[position]);
I have current time with System.currentTimeMillis()
and I want to calculate Different between System.currentTimeMillis()
and my time that got from server.
I want to use this result in CountDownTimer()
new CountDownTimer(result, 1000)
Thanks for your advice :)