I have an app where the user is entering some data via an EditText
control.  This is done by alternating between 2 pages each of which
obtains one piece of data.  When I start, I create the first page and
make it active by calling the setContentView for the activity. I also
set the focus into the EditText control on this page.  When I do that,
I am able to bring up the soft keyboard and type text into the
control.

I then press a 'Next' button, which brings up the second page.  I
create this page which has another EditText control, and make it
active by calling the setContentView.  Once again, this works
correctly, and I am able to enter text into the control.

When I press the 'Next' button again, the first page is then make
active again (I am reusing the origonal page, and do not recreate
it).  However, when I do this, I can no longer type text with the soft
keyboard and have it go into the EditText control.  The control shows
a blinking cursor as if it has focus, but if I type on the soft
keyboard, nothing happens, except I get the following errors in
LogCat:

10-09 17:28:52.722: ERROR/MediaPlayerService(30):   error: -2
10-09 17:28:52.722: ERROR/MediaPlayer(52): Unable to to create media
player
10-09 17:28:52.722: WARN/AudioService(52): MediaPlayer IOException:
java.io.IOException: setDataSource failed.: status=0x80000000

Note that if I don't bring up the soft keyboard and use the hardware
keyboard instead, everything seems to work correctly.

Obviously, I am doing something wrong here, but I cannot figure out
what. Can anyone give me a clue as what is happening here?

Thanks.

-- 
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