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. How to include 3rd party jar in APK with make in android repo?


 I am working on the Android builtin Contact app. It can be build with "make
Contact" in the repo. Now, I want to use a 3rd party jar, and how to package
the jar into Contact.apk?

 It is easy to include external jar for Eclipse Android project, but not for
android git repo codes. I am afraid package/apps/Contact/Android.mk should
be changed to include external jar, how to do it?

-- leo


2. Camangi web station butut:-)

Setelah smartphone, android diharapkan running di tablet, layar besar, cepat, 
loading mudah.
Saya berpikir untuk punya sebuah tablet android, untuk baca majalah, comic,  
nonton dan web browser.
Salah satu produk release awal adalah camangi, but review dr gizmodo , mending 
dibuang katanya :-)


Lucky Sebastian
@K-9 android

Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:


3. How to refresh view after chaging Visible?

4. FAT32 FS Code

5. MapView Overlays Containing Widgets/View

6. How can i stop a thread in a Activity?

7. Eclipse/Android/Mac OS x problem with HelloAndroid