RIVERSIDE >> University of California, Riverside, police and city police arrested a man Friday night suspected in two attempted carjackings on campus earlier in the day.

The arrest came after a UCR student who had received a text alert from the police department reported seeing someone who matched the suspect’s description.

The first incident occurred at about 1:30 p.m., when a female UCR student reported that a man attempted to wrest control of her car in a parking lot at the Bannockburn Village Apartments on Canyon Crest Drive.

She resisted and he fled on foot.

The woman was not injured.

At 2:43 p.m., UC police received another call of an attempted carjacking, this time at the University Plaza Apartments on Linden Street. The suspect again was unable to get control of the vehicle, and again fled on foot.

The second victim, also a female UCR student, was not injured. Neither victim reported seeing a weapon.

Police arrested Antonio Martinez, 25, of Riverside, at 5:50 p.m. after he was seen sitting on a curb near Campus View and Celeste drives, authorities said.

Martinez faces two counts of attempted carjacking, two counts of attempted robbery, violating parole, and resisting arrest. Martinez was being held without bond at the Robert Presley Detention Center in Riverside.

“We rely on all of the campus community to ensure its safety,” said UCR Police Chief Mike Lane. “We were able to do this with the help of a quick-thinking UCR student. We thank that student and the entire UCR community for its assistance with this search.”