Nagaraja S
Nagaraja S

Reputation: 66

Auto screen rotation in windows 7 mobile

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.

Upvotes: 0

Views: 535

Answers (2)

richardwiden
richardwiden

Reputation: 1602

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

Upvotes: 1

Preet Sangha
Preet Sangha

Reputation: 65516

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.

Upvotes: 0

Related Questions