title: Wrong decimal separator returned by DecimalFormatSymbols.getInstance().decimalSeparator
body: <p>Based on this question: <a href="https://stackoverflow.com/questions/8188137/decimal-point-or-decimal-comma-in-android">Decimal point or decimal comma in Android</a> I try to get decimal separator used in the device. I am using Kotlin so my code looks like this:</p>
  <pre><code>import android.icu.text.DecimalFormatSymbols
  
  DecimalFormatSymbols.getInstance().decimalSeparator  // function used in onCreate()
  </code></pre>
  <p>This code returns <strong><code>,</code></strong> but on the device, the separator used e.g. in EditText is <strong><code>.</code></strong>. Why does this happen?</p>
  <hr>
  <p>An example where I think it returns the wrong result:</p>
  <pre><code>import android.icu.text.DecimalFormatSymbols
  
  class MainActivity : AppCompatActivity() {
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
  
          txtSeparator.text = DecimalFormatSymbols.getInstance().decimalSeparator.toString()
          txtTest.text = (1234.5678).toString()
      }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/MSQSE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MSQSE.png" alt="enter image description here" /></a></p>
  <p>Why separator in first TextView is different than in the second TextView or in the EditText? It happens in some langueages. In English it works but e.g. in Polish doesn't.</p>