A man with a string of previous sexual convictions followed a teenage girl and shouted obscenities at her.
Matthew Mellor, of Regent Road, Leicester, had previously been barred by a court from approaching in an inappropriate manner any female not known to him.
However, while in Nuneaton last month, he targeted a 16-year-old as she walked to her boyfriend's home from the town centre at about 7pm.
Prosecutor Andrew Keogh told Warwick Crown Court that the girl had to go along a path and then cross a bridge over a stream during her journey.
As she crossed the bridge, she saw a man peering at her from the edge of the path and then drop out of sight to the left of the path.
After crossing the stream the girl turned right, away from the man, but became aware of 6ft 7in Mellor following her.
As she quickened her pace, the 32-year-old jogged after her.
When they reached an area with some thick trees, Mellor shouted to the girl: "Oi, oi, drop your knickers."
The terrified girl kept going as quickly as she could and called her boyfriend, who met her in his car. When she looked back, she saw that Mellor was no longer following her.
The police were called, and the girl and her boyfriend went back along the path to see if they could see Mellor. They spotted him, and pointed him out when officers arrived.
Mellor, who was heavily intoxicated, was arrested, and it was found his actions had put him in breach of a sexual offences prevention order.
When he was questioned, Mellor accepted he had been in the area but denied hiding from the girl. He said he had walked behind someone but could not recall their gender, and denied shouting anything at the victim.
The court heard that Mellor had previous convictions for sexual offences dating back to 2000, when he was put on probation for sending an obscene article in the post.
He had convictions in 2000 and 2003 for indecent assault, and in July 2005 he was given an extended prison sentence, under which he had to serve two-thirds of a six-year jail term and then be on licence for the remainder of the six years, plus a further three years, for sexual assault.
Mellor was released on licence in February 2009, but was recalled to serve the rest of the nine-year term after an offence of using threatening, abusive or insulting words or behaviour, for which he was jailed for eight weeks in January 2010.
He was finally released in February this year – and in May was given a four-month suspended sentence for sending a letter or other article conveying an indecent or grossly offensive message.
The details of the latest incident were revealed when Mellor appeared at Warwick court for sentencing, having previously pleaded guilty to acting in breach of a sexual offences prevention order.
However, the sentencing could not go ahead as the prosecutor had no details of the offence for which the suspended sentence had been imposed.
Remanding Mellor in custody, Judge Sylvia de Bertodano adjourned the case so the details could be prepared.