It has cost around £320,000 to police the ongoing trouble in Portadown in the past three weeks.
This was revealed last Friday at Craigavon Magistrates Court when a Portadown man made an application for bail.
Twenty-seven-year-old Graham John Best, of Jervis Street, Portadown, appeared by way of videolink from Maghaberry prison.
He is charged with riotous assembly in the town on July 16 and had been remanded in custody.
Last Friday he made an application for bail but the prosecutor said there would be objections to this application.
A constable told the court that police were called because of rising tension at Corcrain Road and Craigwell Avenue.
She added that this escalated and police had to put on full riot gear to push the crowd back.
The officer said there was a sustained attack on the police line and she identified the defendant.
He threw masonry which hit her shoes and contined to throw things at the police line.
The witness said that her patrol went mobile and a short distance away she saw the defendant and arrested him.
She objected to bail because of the likelihood that he would commit further offences, saying that from July 12 it had cost around £320,000 to police the ongoing disorder.
The witness claimed that at least three police officers were injured and two of them required immediate hospital treatment.
Things were still very raw and they were in the middle of the marching season, she added.
A solicitor for Best said that things had calmed down now.
He told the court that there could be conditions attached to the bail and in the past Best had complied with any conditions.
Deputy District Judge, Mr Chris Holmes, said he was minded to grant bail with conditions although it was a serious incident.
Best was granted his own bail of £400 and conditions include a curfew from 11pm to 7am, the defendant be electronically tagged and he has to report to Portadown police three times a week on Saturday, Tuesday and Thursday.