Implement onSearchRequested().

On Wed, Jan 19, 2011 at 8:56 PM, ClarkBattle <[email protected]> wrote:
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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