android autocompletetextview issue
<p>i have a autocompletetextview in which i have attached a listview to show the query results.
My problem is that once user selects a result i append it in the autocompletetextview.All the entries are seperated by a "," what i need is if user presses space in virtual keyboard i need to replace it with ",".</p>

<p>predestination.addTextChangedListener(new TextWatcher() {</p>

<pre><code>        @Override
        public void afterTextChanged(Editable s) {
            // TODO Auto-generated method stub

        }

        @Override
        public void beforeTextChanged(CharSequence s, int start, int count,
                int after) {
            // TODO Auto-generated method stub

        }

        @Override
        public void onTextChanged(CharSequence s, int start, int before,
                int count) {
            // TODO Auto-generated method stub
        }

    });
</code></pre>

<p>i think i need to check it in this listener but this give me whole CharSequence of the enterd text but i need to check only spacebar .</p>

<p>Thanks</p>
