There is no problem with addTextChangedListener. As long as I
commented out mEditText.setText("123456"), it is working.

On Jun 2, 11:14 am, "Mark Murphy" <[email protected]> wrote:
> > I upgraded my project from 1.0 to 1.5.
>
> > I found the function setText is no longer working in 1.5. Does any one
> > knows why?
>
> > Following is my code:
> >  mEditText = (EditText)findViewById(R.id.text_edit);
> >         mEditText.addTextChangedListener(new TextContentWatcher());
> >       //  mEditText.setText(Common.mTextContent);
> >         mEditText.setText("123456");
>
> > the last line will let the simulator throw error message:
> > THe application com.application.easyblog has stopped unexpectedly.
> > Please try again.
>
> The source of your problem will be deeper in the stack trace ("Caused
> by"). Take a closer look at the stack trace and you can probably find the
> source of the difficulty. You can see the stack trace via adb logcat,
> DDMS, or the DDMS perspective in Eclipse.
>
> You might also consider temporarily commenting out your
> addTextChangedListener(), as I suspect that is more likely where your
> problem lies than with setText().
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to