My App is crashing when I start this activity. I have an edit text defined in my layout and I instantiate inside onCreate of my activity. I am creating listeners for my Edittext.
mTextView = (EditText) findViewById(R.id.edit_text);
mTextView.setInputType(InputType.TYPE_CLASS_TEXT);
mTextView.addTextChangedListener(new TextWatcher() {
public void onTextChanged(CharSequence s, int start, int before,
int count) {
}
public void afterTextChanged(Editable s) {
// TODO Auto-generated method stub
}
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
// TODO Auto-generated method stub
}
});
The issue was not because of EditText. It was due to some other problem that I found using LogCat. Thanks for your advise to make use of LogCat.