I need to catch event of ACTION_SEARCH_LONG_PRESS when starting application VoiceSearch.
I used dispatchKeyEvent() or onKeyLongPress(), but I get the event only in my activity. I couldn't get it from other screen (ex: Home screen). because ACTION_SEARCH_LONG_PRESS is Activity action.
Does anyone know how to catch event of starting VoiceSearch (like a BroadcastReceiver)?