Investigators say 49-year-old William Brown first knocked on the door of Foxx's suite on March 20, claiming to be Beyonce's music producer.
Police say he tried to shove his way in, but Foxx pushed him out and called security. The man was ejected again a few days later, but police were called when he returned on Tuesday.
olice say Brown is being held in lieu of $250,000 bail on stalking and other charges, pending a hearing April 7. It's not clear if he has an attorney.
Foxx has returned to Los Angeles after wrapping up filming in Philadelphia this week on the movie "Law Abiding Citizen."
Foxx, 41, won a Best Actor Oscar for portraying singer Ray Charles in 2004's "Ray" and was nominated for a supporting actor Oscar that same year for his work in the Tom Cruise movie"Collateral." His latest movie, "The Soloist," with Robert Downey Jr., is due out April 24.
Foxx studied music in college and released his first album in 1994.