Sorry for the late reply...I've been on vacation.

Just before I left I found that any "extraneous" code I executed
within the OnKeyListener would cause the issue to reproduce (I also
tried several other callback methods such as onKey, etc. and those
produced the same result).

If there was any other code I executed (which there was in the
ellipsized portion I left out in the OP), the bug could be reproduced
quite frequently.  There was a bit of code in the portion I left out,
but simply calling a method to send the text through a socket or to
add that text to a listview adapter would produce the bug.

I.e:

    if (sendText.length() > 0) {
           v.setText("");

           lvA.add("00:00pm", sendText); //This would cause the
edittext to stop functioning normally
    }

I also tried using a handler as well, but found that it wouldn't get
rid of the issue.  The one thing I have done now to workaround the
issue was to remove my OnKeyListener.  Instead, what I ended up doing
was to add a "Send" button right next to my EditText, and in its
onClickListener I run all of the code I previously ran in my
OnKeyListener.  Also, I went ahead and set the EditText inputType as
textShortMessage (in xml: android:inputType="text|textAutoCorrect|
textShortMessage") so that the unused/unmapped enter key on the
keyboard would become a smiley key instead.

After doing this, I can't replicate the bug.  It doesn't solve the
underlying issue, but at least it's something.


On Jun 5, 2:59 pm, Eric Carman <ewcarma...@gmail.com> wrote:
> As this is an on-again, off-again problem, it appears to be on again.
>
> I can reproduce this on a G-Slate.
>
> Back to square one....

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to