Question: what is the difference between civil disobedience and criminal activity?
Answer: Civil disobedience involves accepting legal punishment for the crime, sometimes insisting on the punishment. Rioting is just criminal activity by a bunch of people as a group. Rioters run from police. Those engaged in civil disobedience welcome the police and submit to their actions, even their abuse.