Problem detecting the anlge of the phone - Mango API
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
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
精彩评论