Hi,
Suppose the screen of Android emulator is Locked, and User presses the
Menu key (F2) From keyboard to Unlock It. The screen will be unlocked
as F2 key is as good as pressing the menu on emulator skin.
My question is , which part of Android first receives this F2 Press
Key event? And which part of Android than performs the job of
unlocking the screen?
We want to invoke some native code in Android via Power manager
service using the key press.
For example, when user press ctrl+F9, I want to
invoke ,_my_function(), a native code written in C.
We have the JNI Interface already written, which will call this native
code from PM Service and the corresponding method in PM service as
well.
Also, what we want is no matter what application is running on
Emulator, this key press should work.
I already done the key mapping of Crtl+ F9 in QEMU code, so now I want
to know how this key will be identified in Android Framework.
I also checked the Blog post by Dianne Hackborn at
http://android-developers.blogspot.com/2009/12/back-and-other-hard-keys-three-stories.html.
But I am unable to use that information to implement the feature which
we want to implement.
Any comments?