HTC Desire keyboard problem

by Michael Rueger » Sat, 17 Apr 2010 15:46:35 GMT


Sponsored Links
 Hi all,

a day away from deployment...
Our application which we had tested on a G1 with 1.6 and a Nexus with 
2.1 suddenly has unexpected problems on a HTC desire (German version) 
with 2.1.


It seems that the keyboard behaves differently:

- event.getAction() == KeyEvent.ACTION_UP
doesn't work/fire

- android:imeOptions="actionNext"
doesn't seem to be honored by the keyboard (it keeps the return button)

Unfortunately I don't have access to the phone (a user did some testing) 
so I can't debug.


Any ideas?

Michael

--



HTC Desire keyboard problem

by jamesc » Sun, 18 Apr 2010 21:43:52 GMT


 Hi Michael

It'll be the Sense UI's IME which has different behaviour to the stock
Android IME. Sadly, I'd suggest that you get your hands on a Sense UI-
equipped device (even a Hero, which whilst it has 1.5 on it, may help
you track that issues).

When you say that ACTION_UP doesn't work, is this for all key presses,
or just some in particular?  A bit more information on what you're
attempting to capture with ACTION_UP would be helpful in order to
allow to to get some useful debug prints out.



>


Sponsored Links


HTC Desire keyboard problem

by Michael Rueger » Mon, 19 Apr 2010 16:15:38 GMT


 

Hi Michael It'll be the Sense UI's IME which has different behaviour to the stock Android IME. Sadly, I'd suggest that you get your hands on a Sense UI-
Thanks for the hint, I found this issue for the problem: http://code.google.com/p/android/issues/detail?id=2882& ;q=htc%20ime&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
equipped device (even a Hero, which whilst it has 1.5 on it, may help you track that issues).
I'm afraid so...
When you say that ACTION_UP doesn't work, is this for all key presses, or just some in particular? A bit more information on what you're attempting to capture with ACTION_UP would be helpful in order to allow to to get some useful debug prints out.
See code below, very simple one digit entry fields. (any tips for achieving that more elegantly appreciated :-) ). On the HTC the focus doesn't move to the next field on a key press (the user tells me), so I'm assuming somehow the key event doesn't make it. Michael digit2.setOnKeyListener(new View.OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_UP) { if (event.getKeyCode() == KeyEvent.KEYCODE_DEL) { digit1.requestFocus(); } else { digit3.requestFocus(); } } return false; } }); --



HTC Desire keyboard problem

by jamesc » Tue, 20 Apr 2010 04:52:32 GMT


 Perhaps your 'digit2' View doesn't have focus at the point where input
is being requested?






>



HTC Desire keyboard problem

by jamesc » Wed, 21 Apr 2010 13:31:29 GMT


 The solution is that you shouldn't use onKey() but implement an
InputConnection to handle key presses:





HTC Desire keyboard problem

by Michael Rueger » Wed, 21 Apr 2010 14:35:45 GMT


 

The solution is that you shouldn't use onKey() but implement an InputConnection to handle key presses:



Other Threads

1. where to download android 1.5 r1 source code ?

I know I can find the source code from
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=summary

but I'm not familiar with git, don't know how to download it from
there.

where to find a zip archive file about the source code?

I donot know why the sdk don't contain the source code.
--~--~---------~--~----~------------~-------~--~----~

2. About SQLite (query)

Hi everyone.
I know db.query was written like below in Android sample.
I want to use other field instead of rowId witch is KEY_DATE,
but it's not worked as well.

public Cursor fetchNote(long rowId) throws SQLException {
Cursor mCursor =
                mDb.query(true, DATABASE_TABLE, new String[]
{KEY_ROWID,
                        KEY_TITLE,  KEY_BODY, KEY_DATE}, KEY_ROWID +
"=" + rowId, null, null, null, null, null);

--~--~---------~--~----~------------~-------~--~----~

3. simple MediaController example

4. webView: How to click a web link and display in my WebView app

5. Framework support for detecting starting and stopping of activities

6. Framework support for detecting starting and stopping of activities

7. How do I make a ListView scrollbar expand whilst scrolling?