How do I track the direction of a motion in Android ?
Think WiiMote, it can track what direction you move it (not talking about the IR lamps), is it possible to do similar in android, if so, how?
Some basic code in either Java or B4A is appreciated, but it s enough if you tell me the logic and maths on how to calculate the direction of movement.