I have the following issue:
Inside a fragment let say FragmentTest, i am having the following thread:
new Thread(new Runnable() {
public void run() {
...
if (condition) {
if (isAdded()) {
getActivity.runOnUiThread(new Runnable () {
public void run() {
rightEditText.addTextChangedListener(FragmentTest.this);} }
}
}
}
...
}
}).start;
inside of onCreate method.
The FragmentTest implements the TextWatcher interface but none of the interface method is called.