cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Ardelean (Created) (JIRA)" <>
Subject [jira] [Created] (CB-187) WP7 Issues with Accelerometer.cs
Date Thu, 19 Jan 2012 11:30:40 GMT
WP7 Issues with Accelerometer.cs

                 Key: CB-187
             Project: Apache Callback
          Issue Type: Bug
          Components: WP7
    Affects Versions: 1.3.0
         Environment: On Windows Phone in italian language
            Reporter: Dan Ardelean
            Assignee: Jesse MacFadyen

There is a bug in the Accelerometer.cs. The formattated date won't be parsed on some CultureInfo
because of the decimal separator. The solution is pretty simple, add  CultureInfo.InvariantCulture
to the ToString method. 

Here is how it should look:
  private string GetCurrentAccelerationFormatted()
            string resultCoordinates = String.Format("\"x\":{0},\"y\":{1},\"z\":{2}",
            resultCoordinates = "{" + resultCoordinates + "}";
            return resultCoordinates;
To reproduce the error set you phone to italian and you will see you won't get the notifications

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message