AP, File, Photo by John ShearerInvision
FILE - In this June 5, 2014 file photo, Sandra Bullock speaks at the 42nd AFI Lifetime Achievement Award Tribute Gala in Los Angeles. A preliminary hearing for a man accused of breaking into Sandra Bullock’s home has begun with the recording of a 911 call of the panicked actress reporting the man was in her home. Bullock is heard telling police that she is hiding in the closet of her Los Angeles home after seeing the man inside her home. The recording was played in court Thursday, April 9, 2015.

LOS ANGELES — Sandra Bullock hid in her bedroom closet and sounded panicked and tearful at times as she guided police into her house after spotting an intruder last year, according to a 911 call played in court Thursday.

The Oscar-winning actress called police after seeing a man in her home heading for the attic. The roughly 15-minute conversation with a 911 dispatcher is the first piece of evidence a prosecutor presented against Joshua Corbett, who is charged with stalking the actress and breaking into her home in June.

"I'm in my closet. I have a safe door," Bullock, breathing heavily, is heard telling the dispatcher. "I'm locked in the closet right now."

Bullock gave the dispatcher a description of the man and said she went out to investigate noises in her home.

"I thought it was a wind blowing," Bullock said. "Then I saw the person."

A police officer testified that Corbett was clutching a black notebook with a two-page letter to Bullock and magazine photos of the actress when he was arrested.

"He said, 'I'm sorry. I love you Sandy,'" Los Angeles police Officer Jose Bermudez testified.

Bullock is not expected to testify during Corbett's preliminary hearing, during which a judge will determine whether there is enough evidence for Corbett to stand trial.

Corbett also is charged with having an arsenal of illegal weapons, including assault weapons, tracer ammunition and machine guns, that were found when authorities searched his home. Corbett was not armed when he was arrested at Bullock's residence, police have said.

Corbett, 39, has pleaded not guilty to all charges.

Bullock told police she was not armed and her son was not home at the time. She tried to navigate police through security at her home, which included a gate at her driveway.

The actress attempted to open the gate from her cellphone, but it didn't work.

"Now my phone is not working so maybe they know how to override my system," Bullock told the dispatcher.

Bullock gave officers instructions on how to find her bedroom. When officers got there, Bullock, who sounded like she was in tears, thanked the dispatcher.

Anthony McCartney can be reached at http://twitter.com/mccartneyAP .