refactor ActivityRecognizer, fixed driving shutdown from settings