How to get event ACTION_SEARCH_LONG_PRESS

All your problems with Audio, Video and Images.

How to get event ACTION_SEARCH_LONG_PRESS

Postby luanbt » Wed Apr 06, 2011 12:25 pm

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)?
luanbt
Freshman
Freshman
 
Posts: 7
Joined: Tue Feb 22, 2011 8:00 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 18 guests