When the hard search button is pressed while my app is active I want
it to open my search activity.  I have tried this in the manifest:

                <receiver android:name=".receivers.HardwareSearchReceiver">
                        <intent-filter>
                                <action 
android:name="android.intent.action.SEARCH_LONG_PRESS"/>
                        </intent-filter>
                </receiver>

along with:

                public class HardwareSearchReceiver extends BroadcastReceiver
                {
                                @Override
                                public void onReceive( Context context, Intent 
intent )
                                {...}
                }

It doesnt work.  What is the right way to do this?

Thanks

-- 
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

Reply via email to