A 19-year-old man accused of fleeing police in a stolen Dodge Charger while armed with a gun is being detained pretrial.