@SuppressWarnings("deprecation") private void initTime(){
  Time time=new Time(System.currentTimeMillis());
  int hours=time.getHours();
  mHourSingleDigits=hours % 10;
  mHourTenDigits=hours / 10;
  int minutes=time.getMinutes();
  mMinSingleDigits=minutes % 10;
  mMinTenDigits=minutes / 10;
  int seconds=time.getSeconds();
  mSecSingleDigits=seconds % 10;
  mSecTenDigits=seconds / 10;
}

@ SuppressWarnings ( "deprecation" ) private void initTime ( ) { Time time = new Time ( System . currentTimeMillis ( ) ) ; int hours = time . getHours ( ) ; mHourSingleDigits = hours % 10 ; mHourTenDigits = hours / 10 ; int minutes = time . getMinutes ( ) ; mMinSingleDigits = minutes % 10 ; mMinTenDigits = minutes / 10 ; int seconds = time . getSeconds ( ) ; mSecSingleDigits = seconds % 10 ; mSecTenDigits = seconds / 10 ; }
to get the exact time now and to assign the values .
