Created
October 9, 2017 08:43
StartClock method for a tutorial on the SSaurel's Blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void startClock() { | |
timer = new Timer(); | |
timer.scheduleAtFixedRate(new TimerTask() { | |
@Override | |
public void run() { | |
final String hexaTime = getHexaTime(); | |
runOnUiThread(new Runnable() { | |
@Override | |
public void run() { | |
applyColor(hexaTime); | |
} | |
}); | |
} | |
}, 0, 1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment