hi all,

I want to change the search/query key on phone by application code,
so I use the keyevent, the code is:
===========================================
public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_SEARCH) {
            //do what you want
        System.out.println("this is key SEARCH!");
    }
        return true;
}
===========================================
but when I press the search button,
there are nothing to change and no message on the logcat,
so, is possiable to change search/query button by application code?

thanks

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

Reply via email to