A 21-year-old man was detained in Shanghai’s Minhang district around midnight for damaging a police car after he was told by officers to stop dancing, police said yesterday.