Brandon Dunham left behind a trail of shattered glass, broken windows and belongings strewn across the floor, police allege.

That was his first mistake, they said.

The second mistake, police allege, came when he and the homeowner at 14 Rock St., the home he was allegedly burglarizing at the time, came face to face and Dunham tried to push past him, out of the man’s home.

Police were called to the home on Rock Street on Monday afternoon to arrest Dunham, 21, of 220 Morgan St., Fall River. He was subdued and bleeding when the first officers arrived, police said.

“He was found by the homeowner, a 48-year-old man,” Jones said. “The homeowner told us he came in and found Dunham going through his upstairs rooms.

“The front window was smashed and there was glass on the floor and on the front porch. It appears he went in through the front window.”

Dunham was taken to Newport Hospital for treatment of cuts and bruises and then returned to Tiverton police to spend the night in jail.

He was arraigned on Tuesday in Newport District Court on the charge of burglary. Bail was set at $25,000 with surety, which requires a defendant to post a bond for the entire amount or 10 percent in cash.

Dunham was ordered held at the Adult Correctional Institutions until he can post bail.

Burglary in Rhode Island carries a penalty of up to life in prison with a minimum prison sentence of five years.

The case will be referred to a grand jury, which must determine if there is sufficient evidence to proceed to trial in superior court.