Barker served in the Revolutionary War and remained active in the military through 1808, when he retired as Major General of the First Brigade, First Division.
He served twice as sheriff of Philadelphia, from 1794 to 1797 and 1803 to 1807. He was appointed an alderman of the city of Philadelphia by GovernorThomas McKean on October 22, 1800. He was elected mayor by the Select and Common Councils on October 20, 1808, and was re-elected in 1809 and again, after an interval of two years, in 1812.[1]
During the War of 1812, he served on the city's Committee of Defense.
He was the only son of James Barker. He was the father of playwright James Nelson Barker, who served in the army during the War of 1812, rising to the rank of major, and who was also later mayor of Philadelphia.
^The Lives of Eminent Philadelphians, Now Deceased: Collected from Original and Authentic Sources, by Henry Simpson, published by W. Brotherhead, 1859.