I want to detect Search Event in my Activity to be able to rearrange my view before Global Search is started.
I managed to detect start of Search in two ways: 1. OnKey event, if keyCode == KeyEvent.KEYCODE_SEARCH 2. onSearchRequested() function is being called But, these two events are not send to my application if some dialog is displayed in my activity, including Spinner options, ContextMenu, About box... When dialog is opened my Activity loses focus and no key events are send to it. How do I send events to Activity, or handle events in Spinner dialog? Its still my application after all. -- 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

