Reference: http://www.alfawzan.af.org.sa/node/14754
Question: Is it permissible to crack the knuckles and [take off and] put spectacles in the pocket during the prayer?
Response: It is not permissible to crack the knuckles [during the prayer], as it shows negligence and a lack of concentration.