Android: How do I display an updating clock in a TextView
have a clock I want to display in a TextView. I would have thought there was a few nice functions to do this, but I couldn't find anything. I ended up implementing my own way that uses a Handler. What I'm asking though, is there a better (more efficient) way to display a real time updating clock? private Runnable mUpdateClockTask = new Runnable() { public void run() { setTime(); mClockHandler.postDelayed(this, 1000); } }; That's my handler, which runs every second, and then my set time and date function is below TextView mClockView; public void setTime() { Calendar cal = Calendar.getInstance()