The police prosecutor, Sergeant Jill Wood, said Green obtained the 19-year-old's contact details through a public rally, which the Herald understands was for Auckland youth suicide victim Toran Henry.
Ms Wood said Green was a high-risk offender. He had re-offended 100 times - counting only the periods he was on bail.
The prosecutor also revealed that a second complainant had come forward to allege harassment during Green's three weeks of freedom.
She said the officer in charge of the case had described Green as "the most dangerous stalker New Zealand has at the moment".
Green's lawyer, Geoffrey Anderson, sought bail for him.
"He struck up a relationship with the complainant which was unexpected to her," he said.
Mr Anderson said his client used an alias when he approached the 19-year-old. "And it was persistent to a point, but as soon as he was told to desist, he did desist."
Green had been in prison for a long time and was adjusting to the outside world.
"It was a new world for him. He was a lonely and isolated person."
Green was already living in a residential facility approved by the Parole Board and was looking for work.
Mr Anderson said strict bail conditions such as denying Green the use of phones and computers would be comprehensive and effective.
But Community Magistrate Diane Hale said the 19-year-old victim had expressed grave concerns about bail and said she had done nothing to invite attention to her or her family.
"At first she ignored it, but as the intensity grew, she became so concerned about her safety that she moved from her home and changed her phone number, and her mother had to change her phone number as well," Ms Hale told Green.
"You got her contact number again by contacting her grandfather and selling a story that you were a friend of hers. He thought you were genuine and gave you information he shouldn't have and probably regrets to this day."
The victim had said she was being harassed on landlines and her cellphone at work and at home.
"The victim has expressed that she has felt very threatened and very vulnerable."
Ms Hale denied bail for Green because he was facing a serious charge likely to lead to imprisonment if convicted, the prosecution claimed to have strong evidence to support its case, there was a high risk he would interfere with the victim and witnesses, and he was likely to reoffend.
"Bail hasn't stopped you from offending in the past," she said.
"And looking at your past conduct, imprisonment doesn't appear to have led to improvements in your actions, and it is noted that you did not show remorse for your actions."
Green pleaded not guilty to the charge and will reappear in court on January 12.