Langley also told police he had left his infant unattended.
When police entered Langley's home, they found the baby strapped into a floor seat, happily waving her arms at the characters on TV, borough Police Chief John Eller said.
"She was a happy camper," he said.
The child, who was visiting her father, was returned to her mother.
Police also found used needles and plastic bags containing heroin residue in the downstairs bathroom and first-floor bedroom, according to court documents.
When questioned, Langley said he had "a very bad heroin addiction" and had gone out to burglarize houses looking for money or items he could sell. He was looking in mailboxes and under porch mats and furniture cushions for keys to enter properties, police said.
"He was more of an opportunist looking for something to be open," Eller said.
Langley was charged with burglary, trespassing, endangering the welfare of a child, and related crimes. He was remanded to the Delaware County jail with bail set at $100,000.
Contact Mari A. Schaefer at 610-892-9149, email@example.com, or follow @MariSchaefer on Twitter.