question: public void updateAnalytics ( double speed , double distance ) { if ( distance < 1000 ) { tvdistance . setText ( String . valueOf ( Math . round ( distance ) ) ) ; tvdisunit . setText ( R . string . meter ) ; } else { tvdistance . setText ( String . format ( "%.1f" , distance / 1000 ) ) ; tvdisunit . setText ( R . string . km ) ; } tvspeed . setText ( String . format ( "%.1f" , speed ) ) ; }
target:  update speed and distance at analytics item