My application will take pictures and I need the user to hold the phone smoothly. And if the position of the phone does not match the condition, then toast will appear on the screen.
1) How to track the position of the phone?
2) and how is it properly called?
I know that this is used in games, when a car goes, for example, and the user turns the phone right or left and the application reacts to it ...