question: private boolean prepareAndUploadPoints ( Fusiontables fusiontables , String tableId , Track track , List < Location > locations , boolean lastBatch ) throws IOException { ArrayList < Track > splitTracks = SendToGoogleUtils . prepareLocations ( track , locations ) ; boolean onlyOneSegment = lastBatch && currentSegment == 1 && splitTracks . size ( ) == 1 ; for ( Track splitTrack : splitTracks ) { if ( ! onlyOneSegment ) { splitTrack . setName ( context . getString ( R . string . send_google_track_part_label , splitTrack . getName ( ) , currentSegment ) ) ; } createNewLineString ( fusiontables , tableId , splitTrack ) ; currentSegment ++ ; } return true ; }
target:  Prepares and uploads a list of locations from a track.