editText.addTextChangedListener(new TextWatcher(){
@Override
public void afterTextChanged(Editable arg0) {
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
// TODO Auto-generated method stub
Log.d("start", ""+start);
Log.d("count", ""+count);
Log.d("after", ""+after);
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
// TODO Auto-generated method stub
Log.d("start", ""+start);
Log.d("before", ""+before);
Log.d("count", ""+count);
}});