Ironically I was going to ask a similar question.
I experimented with a layout that shows X Y and Z output from the touch.accelerometerx, y , and z (without gravity - not sure of the difference) in three text fields, but the resulting data does into several decimal points. I suppose I ought to use an integer of the output?
FYI: X is left and right movement, Y is up and down movement, and Z is towards and away from you.
I see my users performing a left-right shake gesture, which will fill a progress bar and ultimately trigger returning to the original layout.
What I would like is any suggestions regards measuring the rate of change - from the X axis data. 4.0x seems to be a comfortable point, (and I don't want users to inadvertently fling their phones across the room). So - thoughts on measuring this accumulated 'shake' data?
Any input is welcome and appreciated!