Sean Monaghan was arrested by Gardai at 3.10pm on Sunday last and charged a short time later.
He made no reply when the charges were read to him.
The court was told that Monaghan, with an address at 20 Sprackburn Drive in Letterkenny, may face other charges.
Detective Garda Peter Cullen said Monaghan was from Strabane but spent a lot of time at this address in Letterkenny.
He did not object to bail.
Bail in the sum of €200 was granted by Judge Paul with the conditions that Monaghan sign on three times a week at Letterkenny Garda station and that he keep a curfew.
The case was adjourned until October 20th next.