views:

39

answers:

2

We have developed a application for HTC HD2 mobile, which has windows 7 CE. I have designed application to work for both the orientation (portrait, landscape) Now I wanted to achieve auto screen rotation (portrait to landscape and landscape to portrait) according to the device movement (some thing like iPhone). Can i able to achieve it? if yes how can I? It will be appreciable if you provide me link or sample code.

A: 

You may be interested in the 2 way limitations of the accelerometer on the HD2.

There is some info here about using the accelerometer from the managed code.

Preet Sangha
+1  A: 

The documentation site has some information on how to access it.

http://msdn.microsoft.com/en-us/library/microsoft.devices.sensors.accelerometersensor_members(v=VS.92).aspx

Richard