The accused, Gavin Sheehan, of 7, Laurel Ridge, Shanakiel, Cork, was brought before Cork District Court. Evidence of the arrest and charge was given by Detective Garda Pat Condon.
Sheehan was accused of discharging a firearm, being reckless as to whether any person was injured or not, on May 15, at Hollywood estate, Blarney Road, Cork.
The 29-year-old was further charged with possession of a 9mm calibre round of ammunition at the same date and place.
The third charge against Sheehan is that, at his home at Laurel Ridge on the same date, he allegedly had in his possession a Smith and Wesson 60.96 semi-automatic firearm giving rise to a reasonable inference he did not have it in his possession for a lawful purpose.
Det Garda Condon said he arrested Sheehan shortly before 11pm on Sunday at 7, Laurel Ridge, Shanakiel, and later charged him with the three counts.
Sheehan was cautioned by the officer that any reply he might make to the charges would be taken down in writing and could be given in evidence in court.
The accused made no reply to any of the charges.
Inspector John Deasy said that the prosecution was opposed to bail being granted to Sheehan.
Defence solicitor Karina O’Leary, from James MacGuill solicitors in Dundalk, Co Louth, said there was no bail application.
“I am reserving my position with regard to bail,” Ms O’Leary said.
Inspector Deasy applied for an adjournment of the case until Wednesday next, the accused to appear by video link from prison on that occasion.
The inspector indicated that directions were not yet available from the director of public prosecutions.
Ms O’Leary, solicitor, said that Sheehan was not working and was on Job Seekers Allowance.
She applied for free legal aid in the name of colleague James MacGuill.
Judge Aingil Ní Chondúin granted the application for free legal aid and adjourned the case for one week.