A man allegedly tried to bite and head-butt police officers after waking up near the scene of an all-night party in Belfast, a court has heard.
Robert Allsopp, 37, is also accused of spitting on one of the PSNI constables called to a block of flats in the New Lodge area in the north of the city.
Allsopp, of Linen Court in Armagh, is charged with attempted assault occasioning actual bodily harm to one officer and four assaults on police.
He faces further counts of disorderly behaviour and resisting police over the incident at Finn House, Queens Parade in the early hours of Wednesday, May 19.
Belfast Magistrates' Court was told police went there following reports of a noisy party in the building.
Officers discovered Allsopp unconscious in a stairwell and called an ambulance.
But he then allegedly woke up and started to shout and swear at police.
Opposing his application for bail, a PSNI constable said the defendant "kicked off" on being handcuffed and detained for suspected disorderly behaviour.
Allsopp twice attempted to head-butt one officer, tried to bite a colleague on the hand and kicked out at another policeman, it was claimed.
During the incident he allegedly spat on the face of one of those arresting him.
Defence counsel said the accused has issues with substance misuse.
"He has very limited memory of what occurred on Wednesday morning," she added.
Bail was refused due to the risk of further offences.
District Judge George Conner instead remanded Allsopp in custody to appear again by video-link in three weeks time.