Android keyboard not dismissing
<p>On my android app the keyboard behaves in a strange manner. Everything works fine till the backspace is pressed. <strong>When a backspace is pressed the next character entered will not be read by the edittext.</strong> (Suppose the edittext shows 123. I pressed a backspace. Now it shows 12. Now I decided to enter 5, tapped 5. Still the edittext shows 12. Entered 5 once again. It works.)</p>

<p>I'm using a textchange listener for this editText. On the onTextChanged method the following code is used to format the numbers entered. (when 1 is entered it will be rendered as 00.01. If you enter 2 after this it will be rendered as 00.12).</p>

<pre><code>if (!s.toString().equals(_currentFare)) {


    _fareText.removeTextChangedListener(this);

    String cleanString = s.toString().replace(".", "");

    double parsed = Double.parseDouble(cleanString);

    DecimalFormat decimalFormat = new DecimalFormat(
            IGConstants.zeroBalance);
    String formated = (String.valueOf(decimalFormat
            .format(parsed / 100)));

    // The formatted text will contain a ','. For converting
    // this to double for calculation
    // purpose the comma is removed
    _currentFare = formated.replace(",", "");
    if (_currentFare.equals("") || _currentFare.equals("0")) {
        _currentFare = IGConstants.zeroBalance;
    }
    _fareText.setText(_currentFare);
    _fareText.setSelection(_currentFare.length());

    _fareText.addTextChangedListener(this);

}
</code></pre>

<p>When I removed the above code snippet it's working fine. But I need this to format the text entered.</p>
