The shooting happened July 26 near 94th Street and Amsterdam Avenue in front of the W-S Deli.
The suspects were identified Wednesday as Nyshawn Dawson, 21, and Khalil Salahuddin, 23.
Dawson was arrested on Monday and Salhuddin was arrested on Tuesday.
Both live near the scene and the shooting is believed to be a result of a local dispute, but the child and the man injured are not believed to be intended targets.
Dawson and Salhuddin are currently charged with attempted murder, attempted assault and criminal possession of a weapon.
ALSO READ | Family describes frightening attack on F train in Manhattan
Family speaks out after F train attack
----------
* Get Eyewitness News Delivered
* More Manhattan news
* Send us a news tip
* Download the abc7NY app for breaking news alerts
* Follow us on YouTube