Inconsistent Code Returns from Different Android Devices
<p>I am using the code below to return my numbers with the proper notation that a locale uses.  For example, European formatting uses a comma rather than a decimal displaying floats/doubles. While testing on devices this code works, but not on a Droid X (so I wonder how many other phones this may occur on also).  Has anyone run into this and/or may have a solution?</p>

<p>Here is the code:</p>

<pre><code>/**
 * &lt;p&gt;Converts doubles to twoDecimal points with proper notation per locale&lt;/p&gt;
 * 
 * @param double 
 * @return converted number to 2 decimal points with proper notation 
 */
public static String getFormattedValue(double d) {
    Locale mLocale = getResources().getConfiguration().locale;

    String formattedString;
    NumberFormat nf = NumberFormat.getNumberInstance(mLocale);
    DecimalFormat df = (DecimalFormat)nf;
    df.applyPattern("###,###.##");

    formattedString = df.format(d);

    return formattedString;
}
</code></pre>
