PORTLAND, Ore. (AP) — A former Detroit Lions cornerback who was shot by a homeowner when authorities say he tried to break in to a multimillion-dollar home in Portland said at a court hearing that he was happy to be alive.

In this Aug. 7, 2006, file photo Detroit Lions' Stanley Wilson goes through running drills during the team's training camp at the training facility in Allen Park, Mich. Authorities say a homeowner in Portland, Oregon, shot an intruder who turned out to be former Detroit Lions cornerback Stanley Wilson II. The Multnomah County Sheriff's Office says Wilson tried to break through the back window of a multimillion-dollar home. Wilson has been arrested on charges of burglary and criminal trespass. (Daniel Mears /Detroit News via AP, File)  DETROIT FREE PRESS OUT; HUFFINGTON POST OUT; MANDATORY CREDIT

In this Aug. 7, 2006, file photo Detroit Lions’ Stanley Wilson goes through running drills during the team’s training camp at the training facility in Allen Park, Mich. Authorities say a homeowner in Portland, Oregon, shot an intruder who turned out to be former Detroit Lions cornerback Stanley Wilson II. The Multnomah County Sheriff’s Office says Wilson tried to break through the back window of a multimillion-dollar home. Wilson has been arrested on charges of burglary and criminal trespass. (Daniel Mears /Detroit News via AP, File)

The Oregonian/OregonLive reports (https://is.gd/D5Q0cR) that Stanley Wilson II was arraigned Thursday on burglary and trespassing charges.

Authorities say Wilson was found naked and wounded in a water fountain in a backyard June 22. The homeowner had shot him in the abdomen.

Oregon law allows a person to use deadly physical force against someone trying to burglarize their home. Prosecutors will determine if the shooting was justified.

Wilson posted bail this week and was ordered to stay away from the neighborhood. His next court appearance was set for July 15.