Cesar del Valle faces several charges, including attempted murder and aggravated battery.
The shooting happened Wednesday night in the 5600-block of South Mozart as the boy was sitting in his brother's car in Gage Park.
Brian Fernandez was hit in the shoulder and chest and is still in the hospital.
The suspect was denied bond Saturday.