A man was arrested after an iPad app helped police track down the stolen tablet inside his car.

Police also discovered heroin and crack cocaine inside the vehicle belonging to Tim Moyce.

Kirklees Magistrates’ Court heard that the iPad was stolen during a burglary on October 18.

Prosecutor Jill Seddon said: “The complainant has an app on his iPad that helps find it when it’s lost and that was deployed by the complainant.

“The defendant was found with it the next day in his motor vehicle in Batley.”

Moyce, 37, pleaded guilty to handling stolen goods as well as possession of class A drugs.

Eight wraps of heroin and two wraps of crack cocaine were found inside his car.

Moyce admitted a further charge of theft of two bottles of spirits from Tesco in Cleckheaton.

Mike Sisson- Pell, mitigating, explained that his client had been a drug addict for 20 years.

He had then lost his job, his benefits were sanctioned and he had ceased to be a functioning drug addict.

A report on Moyce, of Turnsteads Crescent in Cleckheaton , was ordered ahead of his sentencing.