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. Password protecting CheckBoxPreference

I'm trying to attach a password to CheckBoxPreference. I can show a
dialog with enter password message by overriding OnPreferenceTreeClick
() method and that's working just fine. The only problem is that
preference get clicked before dialog shows up (i.e. first check box
get marked/unmarked and then dialog appears). I'd like to delay a
marking/unmarking check box until user enters a password...

Any ideas what else to override and how to do this?

Btw, I've tried attaching OnPrefrenceClickListener to
CheckBoxPreference but nothing changes, preference still get the click
before my dialog shows up...

2. Flash and future of Android game development?

Well considering how cpu hungry flash is, I'm pretty sure there are a LOT of
things that can't be implemented.  Basically, it's like choosing between
using the android framework or html/webkit to make an app.

It's just another tool to get something accomplished.  In the end just use
the tool that works best.

Hi All,

With the promising news of Flash support for Android what will the future of
Android Game development?

Best Regards,
Atif Gulzar

I  Unicode, zln 


3. Developer console stopped updating?

4. How to retrive all elements from Res/Raw folder in one shot at run time

5. Probably a simple Canvas Drawing question. Please answer

6. Does Android Eclair code base support "Plugins" in "Android Browser"?

7. how to use maindictionary