onKeyUp in 2.0 gets called even when focus is in a TextView

by sdphil » Fri, 18 Dec 2009 00:39:16 GMT

Sponsored Links
 according to the documentation --

 http://developer.android.com/reference/android/app/Activity.html #onKeyUp%28int,%20android.view.KeyEvent%29

"Called when a key was released and not handled by any of the views
inside of the activity. So, for example, key presses while the cursor
is inside a TextView will not trigger the event (unless it is a
navigation to another object) because TextView handles its own key

My activity's onKeyUp should not be getting called when the cursor is
inside a TextView.  This is the behavior I see in Android 1.5 and 1.6,
but in 2.0 my activity's onKeyUp is still getting called when the
cursor is inside a TextView -- am I mis-interpreting this?



Other Threads

1. Getting checked items from a listview of checkboxes

Hi all,

There doesn't seem to be any good succinct to my question online.

Given a listview that shows checkboxes next to a list of people, I
want to be able to get the names (in Strings for example) of the
people who are checked.

I have set my listview mode to allow for multiple checks. Ideas?

getCheckedItemPositions() will get the positions but I can't figure
out how to iterate over the listview to get the names.

Also Eclipse tells me that getCheckItemIds is not a valid method for

Thanks a bunch ;)


2. turn off vibrate for incoming call


I need turn off vibration for incoming call in my code, but it doesnt
function. I am use


when I receive broadcast message for incoming call. Code for turn off
sound function great, but for vibrate no.

Can you help me?

Sorry for my english.

Thank you



3. Getting and sending Data From the Web (HTTPURLConnection via http)

4. mms forwarding

5. Android-NDK, porting openssl

6. How to retrieve log levels in Java ?

7. Problems with span and onclick events