Within my application, I would like to intercept when the search button is pressed, and display a fragment that provides the search functionality in our application.
I have attempted to override the Activity.onKeyDown, Activity.dispatchKeyEvent, Activity.onKeyUp Activity.onSearchRequested, and setting the appropriate listeners on all the views within the activity.
However, none of these methods are ever called when the search button is pressed, and the standard GoogleTV search box is displayed.
What is the correct way to intercept the search button?
Thanks
Unfortunately, for Google TV, you can't intercept the Search Key. User testing said this was a problem, so Search is always global. You should have a Search Icon on your layout somewhere.