Android Input method bug

16 views
Skip to first unread message

Wolthenstain

unread,
Jun 25, 2011, 10:59:46 AM6/25/11
to microemulator-developers
I have a new bug report.
The following function "fireInputMethodListener(int KeyCode)" in the
"AndroidInputMethod.java"
it contains the line: " if (inputMethodListener == null) { " (which in
itself appears to be counter-intuitive)
due to which Canvas key input fails to deliver often
if you just change the line to something like "if (true) {"
then there are no problems afterwards, although if you can't find the
bug in it
I would try and find the time to supply a sample code

Bartek Teodorczyk

unread,
Jun 27, 2011, 3:24:58 AM6/27/11
to microemulato...@googlegroups.com
Hi,

Sample code would be really useful to fix this problem.

BR,
Bartek Teodorczyk

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

Wolthenstain

unread,
Jun 27, 2011, 4:48:33 PM6/27/11
to microemulator-developers
Hi Bartek,

I've managed to set up a sample code - all the required files are in
this 7-zip archive :
http://wolt.webuda.com/microemu_android_input_bug.7z
especially see the first two comment lines at the start of the code in
'game.java' - everything else is just a standard Canvas -
the pointer input will work, but not the arrow key input - until you
do what's said in the comments

The bug turned out to be a very peculiar one - I tested it both on
Android API level-4 and API level-7.
It occurs when you create a new form, then append something to it (it
does not occur if you leave it empty) and then switch the display to
Canvas without first showing the form (if you show it then the bug
does not occur).
I'm sorry that I can't go more deeply into this currently, I'm busy
and the solution I gave is good enough for myself.

Regards, Valters.
Reply all
Reply to author
Forward
0 new messages