A Dublin man breached a protection order when he went to his ex-partner's home, assaulted her, produced a knife and took her phone, it was claimed.
The woman was "terrified" following the alleged domestic violence incident in the south of the city, a court was told.
Judge Michael Walsh refused to grant the man bail following garda objections and remanded him in custody.
The accused, a father-of-one aged in his 30s, is charged with breach of the order at the woman's home on May 23.
The prosecuting garda said it was also alleged that damage was done to the property.
Dublin District Court heard the woman took out the order last February.
The man had made himself available to gardai once he found out they were looking for him, his lawyer said.
Applying for bail, he said his client was denying the allegations. He lived a 30-minute drive from the alleged victim.
The garda said he was concerned the accused would return to the woman's home if granted bail and threaten and intimidate her, adding that she was in fear.