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
presses."

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?

tia.

--



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
ListView...huh!??!


Thanks a bunch ;)


-- 

2. turn off vibrate for incoming call

Hi,

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

audioMgr.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER,
AudioManager.VIBRATE_SETTING_OFF);

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

Ro_pR

-- 

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