I have an activity that needs to respond to DPAD key presses.  I
started by using the View.onKeyDown method to get the DPAD events, but
found that sometimes they go to one of the views in the view hierarchy
for the activity and so never get to the activity view.

Looking through the documentation I found a new method
View.onKeyPreIme method that says it will get the key press events
before the view hierarchy.  But the documentation also says this
method is "Since: API Level 3"

When I changed my code to use onKeyPreIme instead of onKeyDown, the
java compiler gives me the error that it does not override or
implement a super type method.

I checked my manifest file and it has:  <uses-sdk
android:minSdkVersion="3" />

Is there something else that needs to be changed in the manifest or in
the eclipse development environment so that the java compiler will see
the level 3 APIs and be able to compile the file?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to