On 26 October 2011, Alejandro García Padilla announced that Cox Alomar would be his running mate in the 2012 electionsfor Resident Commissioner. On accepting the nomination, he committed himself to reaffirming the values of the Commonwealth status, as well as promoting the creation of jobs, bringing attention to public safety, and broadening access to education and health services. He formally filed his candidacy on 30 October 2010. In May 2012, Cox Alomar became the subject of a scandal when a photograph comparing him to a chimpanzee with the words "R.I.P. Yuyo", was posted on the Twitter account belonging to Zaida R. Hernández Torres, a politician belonging to the New Progressive Party of Puerto Rico. Human rights defenders criticized Hernández for the personal attack against Cox Alomar, who is of Afro-Puerto Rican ancestry, however, in statement she claimed her Twitter account was hacked and that she did not post the offensive image. She later apologized to Cox Alomar and terminated her Twitter account, promising to avoid social networks. Incumbent Resident Representative Pedro Pierluisi won re-election on November 6, 2012 by a 1.28% margin, with 48.44% of the vote, while Cox Alomar placed second with 47.16%. After his defeat, the elected Mayor of San Juan contracted Cox Alomar as Advisor of Federal Affairs for the city.
Political views
When named as candidate for Resident Commissioner, Cox Alomar avoided describing the Commonwealth status of Puerto Rico as colonial. He has come out against the New Progressive Party's two-stage status referendum, calling it divisive. However, on August 9, 2013, Cox Alomar identified himself with the soberanistas, the PPD's wing that support the creation of a project known as ELA Soberano, a hybrid between a free association compact and elements of the Commonwealth such as the American citizenship and a common coin. When asked to explain the sudden change in relation to the political status, he noted that in order to avoid the promotion of a message that conflicted with García Padilla's support of the territorial commonwealth, the 2012 campaign was targeted at attacking the referendum's credibility.
Personal life
Cox Alomar is married to Hilda Rodríguez. He is related to former MLB basbeball players Sandy Alomar, Sr., Roberto Alomar, and Sandy Alomar, Jr..