Police say technology assisted in the arrests.
Grelvis Cabrera, 27, and Carlos Landesta-Agramonte, 18, are accused of shooting and killing 25-year-old Angel Martinez-Velez on a basketball court in Fountain Park around 6:30 p.m. on Saturday.
Court records show recently installed surveillance cameras and license plate readers in Allentown helped officers track down the two suspects.
What led up to the fatal shooting is still under investigation.