An Oregon man spent two days in jail this week for texting during an armed robbery trial.

Marion County Circuit Judge Dennis Graves cleared the courtroom when he noticed an unexpected glow on the chest of 26-year-old juror Benjamin Kohler when the lights were dimmed for a video, Portland TV station KGW reported.

He excused all jurors except Kohler, who had no explanation for his actions.

Jurors in Oregon are given explicit instructions at the outset of each trial not to use cellphones in court, according to The Associated Press.

Kohler was held in contempt of court and spent most of Tuesday and all day Wednesday in jail.

"I know what I did wasn't smart and I don't blame the judge for being upset but two days in jail is harsh," he told KGW on Thursday.

An alternate juror took his place, and the trial ended Thursday with the defendant found guilty, Marion County sheriff's spokesman Don Thomson told the AP.

Chris Colabello hit a two-run home run, R.A. Dickey threw seven shutout innings and the Toronto Blue Jays beat the Kansas City Royals 5-2 in testy matchup Sunday, taking three of four from the AL's top team.