 Hodgson became the temporary attorney general of Prince Edward Island in May 1828, after the death of William Johnston, the previous attorney of the colony; this was switched to a permanent appointment in 1829.Hodgson also became the advocate general, surrogate, and judge of probate of the island in 1828.Hodgson became the president of the Legislative Council of Prince Edward Island in 1840, after serving in that council, as well as the Executive Council, since 1829.