I’ve started recently to study the windows phone 7.1 (Mango) SDK. Is there a simple way to get the angle of the phone relative to the ground (a close prediction is also good)?
Thanks,
Alex
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes. You use the Accelerometer. see:
http://msdn.microsoft.com/en-us/library/ff431810(v=vs.92).aspx and
http://msdn.microsoft.com/en-us/library/hh202984(v=vs.92).aspx