Is there a way to identify that the device has moved up or down relative to earth or from its previous position.
I just want to check if user has moved the device up or down
Is there a way to identify that the device has moved up or down relative to earth or from its previous position.
I just want to check if user has moved the device up or down
Other than the accelerometer, I can't think of any way to do that... If you're trying to find relative elevation I think you're out of luck, but the accelerometer will track a vertical phone movement.