johnvisiomvp

Life with Visio and other Microsoft Toys!

WP7 – What is Shaking?

with 2 comments

While upgrading one of my apps to Mango, I came across a possible issue with one of the new APIs. Part of the app simulates the rolling of dice and uses the ReadingChanged event. With Mango this method is depricated in favour of CurrentValueChanged.

So I decided to upgrade to using Motion rather than the Accelerator sensor. The problem is that the “old” WP7 devices do not have all the sensors that Motion covers so comes up as unsupported. So if your app does not require the full features covered by motion, continue to use the individual sensors. Otherwise your app will not acknowledge any of the sensors covered by Motion (the IsSupported methos) and “older” WP7 devices will not run your app.

John Marshall… Visio MVP       Visio.MVPs.org

Advertisements

Written by johnvisiomvp

September 27, 2011 at 9:45 am

Posted in Windows Phone 7, WP7

Tagged with ,

2 Responses

Subscribe to comments with RSS.

  1. Would you be able to detect the version of the OS and do both ways? Hey, I’m just throwin out an option, I’m still using the old WP7 OS on my phone.

    phenry9999

    September 27, 2011 at 1:33 pm

    • That would work, but my main point was that if you went pure Mango, you could get bitten.

      johnvisiomvp

      September 27, 2011 at 2:29 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: