milliseconds = (int) (appCurrentTime % 1000);
String hours,
minutes=String.format("%02d", mins),
seconds=String.format("%02d", secs),
miliSeconds=String.format("%03d", milliseconds);
time.setText(minutes + ":" + seconds+ ":" + miliSeconds.substring(0,2) );
solved Formatting mili seconds in java using only hundredth and tenth position of the mill seconds