Here is what I suspect, the problem is (if I read the documents correctly) and its doozy:
According to the java.text.DecimalFormat API documentation, you are not actually using Runtime Implimentation Java 1.6 RE, but you are getting the βExtended Versionβ android, which clearly does not contain setRoundingMode, which frankly bites.
"This is an extended version of DecimalFormat, based on the standard version in RI. New or changed functionality is marked as NEW."
The weakness of Java for many years was the default DecimalFormat class HALF_ROUND_UP and was not able to change this until the JVM 1.6. Too bad Android supports this need to kill a living.
So it looks like we're stuck. Kludging BigDecimal scale Settings for formatting the output for all the applications that it needs, instead of just being able to rely only on the formatting call to do the job. Not the end of the world, but very disappointing Google.
Of course, the same dock says that setRondingMode () works, maybe it's all due to an error?
source share