BRIAN Rattigan was talking on a mobile phone when gardai arrived to search his cell in Portlaoise Prison, a court heard.
Detective Garda Gary Proudfoot said that when he and two other detectives entered the cell, Rattigan threw the phone in their direction and tried to grab a SIM card on the bed before he was handcuffed.
Rattigan (31), with a last address at Cooley Road, Drimnagh, has pleaded not guilty to the possession of heroin and two counts of possession of the drug for sale or supply on Hughes Road South, Walkinstown, Dublin on May 21, 2008.
He has also pleaded not guilty to the possession of two mobile phones in Portlaoise Prison on May 22, 2008.
The court heard that gardai who raided a house on Hughes Road South found 5kg of heroin valued at over €1m in a shed on the property.
The trial at the Special Criminal Court continues on Tuesday.