A pensioner allegedly asked a 16-year-old "Do you like it?" after he felt the boy's privates through his tracksuit bottoms.
The 70-year-old is alleged to have left the area when the 16-year-old told him he did not like it.
The accused appeared before Tallaght District Court charged with sexually assaulting a teenage boy at Churchtown Shopping Centre last January 24.
The court heard that the DPP has directed summary trial in the district court.
Outlining the allegation for jurisdiction purposes, Gda David Connolly said the boy stopped outside a coffee shop so he could use the wifi.
Gda Connolly said the accused was sitting outside and went over and started to talk to the teenager, who was on his bike.
The officer said it is alleged the man felt the boy's privates through his tracksuit bottoms and asked: "Do you like it?"
Gda Connolly said the teenager replied "no" and the accused moved off.
The boy immediately told two other individuals what had happened.
Judge Bridget Reilly accepted jurisdiction and the matter was adjourned until July for a plea.