I am working on an application which uses compass
although I successfully implemented it but there is no such brief explanation that how it works
. Like how the TYPE_ACCELEROMETER
and TYPE_MAGNETIC_FIELD
was used to get the orientation. I know we did get it and the zero index of the array we got is the azimuth
from which we get the degree and came to know where north is. But how it get to this all. Can anyone explain please?
Secondly what if I place my mobile on the floor suppose it points in the direction of north when it is placed on ground
now I take up my mobile and hold I upside down
what will happen and why?
According to my understanding the direction shouldn't changed
. I might be wrong, can anyone please guide to me on this. Thanks a lot.