CopyPastor

Detecting plagiarism made easy.

Score: 0.7744255065917969; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-01-01
by Akshay Bhat 'AB'

Original Post

Original - Posted on 2012-01-02
by jainal



            
Present in both answers; Present only in the new answer; Present only in the old answer;

In Activity, get editText reference:
EditText et = (EditText) findViewById(R.id.editText); et.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override public void afterTextChanged(Editable editable) { } });
Try like this.
EditText et = (EditText)findViewById(R.id.editText); Log.e("TextWatcherTest", "Set text xyz"); et.setText("xyz"); et.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void afterTextChanged(Editable s) { Log.e("TextWatcherTest", "afterTextChanged:\t" +s.toString()); } });

        
Present in both answers; Present only in the new answer; Present only in the old answer;