Android 时间显示

private void initUpdateTimeThread() {
        Calendar calendar = Calendar.getInstance();
        mHour = calendar.get(Calendar.HOUR_OF_DAY);
        mMinute = calendar.get(Calendar.MINUTE);
        setTimeString(mHour, mMinute);

        mUpdateTimeThread = new Runnable() {

            @Override
            public void run() {
                if (++mMinute >= 60) {
                    mMinute = 0;
                    ++mHour;
                }

                if (mHour >= 24) {
                    mHour = 0;
                }
                setTimeString(mHour, mMinute);
                mHandle.postDelayed(this, 60000);
            }
        };
    }

    private void setTimeString(int hour, int minute) {
        if (null != mMirrorLayout) {
            myView.setTimeString(String
                    .format("%02d:%02d", hour, minute));
        }
    }