I am unable to undertand and find out how to detect the change in orientation of android phone from horizontal to vertical position. Here i am not talking about orientation change between portrait or landscape. Example can be like i have phone in horizontal position lying on a floor and then i lift up to see the screen from front. So actually the phone had a transition from one axis to another.
Can i do it using Rotation Vector sensor?