Stephen Gough, the man known as the naked rambler, has denied charges concerning nudity close to a play park.
Mr Gough, 53, is alleged to have walked naked close to a children's play park in Townhill, near Dunfermline.
Prosecutors said he refused to put on clothing or move away and committed a breach of the peace on 20 July.
Representing himself at Kirkcaldy Sheriff Court, Mr Gough gave his address as Eastleigh, Hampshire. He replied "not guilty" to the charge.
The former Royal Marine was making a brief appearance in court on Monday afternoon.
Mr Gough chose to represent himself, having turned down the services of duty solicitor Robert Macdonald.
He was naked during the court appearance.
Sheriff Mungo Bovey QC set a trial date for 23 August. Mr Gough did not ask for bail.