A 20-year-old man who tried to rob a supermarket wearing a black bin bag over his head waited in a queue before demanding money, a court has heard.
Kevin Clarence, from Limavady, County Londonderry, Northern Ireland, was charged with attempted robbery on 10 August.
He was remanded in custody at Derry Magistrates' Court on Thursday.
A defence solicitor for Mr Clarence said there was identification and circumstantial evidence against him.
The court heard that a man wearing a black bin bag over his head had queued up and demanded money from a shop assistant in the supermarket.
Another member of staff then approached the man who said: "I'll be back", before leaving the shop.
A police officer told the court that Mr Clarence had only been released from prison in June for a similar offence and was still on licence.
Clarence is expected to appear in court again in September.