Furthermore, a lot of recent hardware (starting with the iPhone 4 in Apple-land, not sure about others) includes gyroscopes in order to handle this even better. It doesn't matter how good your accelerometers are, they're going to be subject to noise from the outside when it comes to detecting rotation changes e.g. the motion of the user's hands.