Type mismatch exception when using java.math classes on Android
<p>I need to divide 2 BigDecimals in an Android 2.2 application :</p>

<pre><code>    BigDecimal a = new BigDecimal(1);
    BigDecimal b = new BigDecimal(3);
    BigDecimal c = a.divide(b,2,RoundingMode.HALF_UP);
</code></pre>

<p>When executing the divide operation I get the following exception :</p>

<blockquote>
  <p>Type mismatch Can't assign java.math.RoundingMode to java.math.RoundingMode</p>
</blockquote>

<p>I'm using the Android sdk 2.2 platform and the Java sdk 1.6.0.24 in my IDE and the program is deployed on a device running Android 2.2.</p>
