Obama and Markey shook hands during the rally at the Reggie Lewis Track and Athletic Center in Roxbury.