locked
Sensor is not present on this platform RRS feed

  • Question

  • I have downloaded Visual Studio Community 2015 to a Windows 8.1 (not Pro) 64-bit PC.

    I have registered a Lumia 640 because the Windows Phone 8 Emulator doesn't run on this machine.

    When loading an app that attempts to access classes in Microsoft.Devices.Sensors (e.g. Accelerometer, Compass, Motion), I get the error: Sensor is not present on this platform.

    What I've tried is simply something like:

               Compass _compass = new Compass();
                _compass.Start();
                compass.Text = _compass.CurrentValue.ToString();

    I know the Lumia 640 has these sensors:- I have other apps that use them, so I wonder why this isn't working and what I need to do.

    Thursday, October 1, 2015 4:05 PM