A suspected armed robber "lured" a young couple to a secluded spot by a canal to supposedly sell them cocaine before stealing from the woman at knifepoint, a court heard.
Jonathan Frazer (33) allegedly pushed the woman to the ground and held a knife to her throat before taking €450 from her pocket.
Judge Paula Murphy refused to grant bail at Dublin District Court and adjourned the case for the directions of the DPP.
Mr Frazer, from Knocknarea Avenue, Drimnagh, is charged with robbery and possession of a knife.
Detective Garda Mark Melbourne said the accused made no reply to the charges after caution.
Objecting to bail, Det Gda Melbourne said the alleged victim and her boyfriend made their way to the Grand Canal walkway, Bluebell, at 12.30am on April 6.
They went there for the purpose of buying a bag of cocaine and had arranged to meet the accused through phone calls.
It was alleged he "lured" them to a quiet and secluded location and when they met, he pushed the woman to the ground, held a knife to her neck and took €450 from her pocket before leaving the scene.
Gardai were alerted and saw the accused at Bluebell Avenue, where he tried to flee on a bike but fell off it and was subsequently arrested, Det Gda Melbourne said.
A knife and phone were recovered from near the bike, the court heard. Citing the nature and strength of the proposed evidence, Det Gda Melbourne said the woman's boyfriend had named Mr Frazer and described what the alleged robber was wearing, a green tracksuit.
Det Gda Melbourne said the accused was arrested minutes from the scene and was wearing a dark green tracksuit.
Gardai believed the phone that was found had been used to lure the alleged victim to the scene.
Swabs had been taken from the phone and knife.
The garda said the accused appeared to be in a dispute with a local criminal which was "escalating".
The alleged victim was put in fear by the alleged robbery, the court heard.
Judge Murphy said that while there was a presumption of innocence, she believed it was necessary to refuse bail and she remanded the accused in custody.