You should really NOT do this. Home searches are meant to search
contacts, and nothing else. Do not attempt to change the semantics of
this Intent.

On Mon, May 4, 2009 at 9:59 PM, whizziwig <whizzi...@gmail.com> wrote:
>
> Hey all--
>
> so I want to completely replace how the home screen handles searches,
> I figured out that this declaration in the manifest is enough to
> intercept both alphabetic and numeric entry on the home screen:
>
>                        <intent-filter>
>                                <action
> android:name="com.android.contacts.action.FILTER_CONTACTS" />
>                                <category 
> android:name="android.intent.category.DEFAULT" />
>                        </intent-filter>
>                        <intent-filter>
>                                <action 
> android:name="android.intent.action.VIEW" />
>                                <action 
> android:name="android.intent.action.DIAL" />
>                                <category 
> android:name="android.intent.category.DEFAULT" />
>                                <category 
> android:name="android.intent.category.BROWSABLE" />
>                                <data android:scheme="tel" />
>                        </intent-filter>
>
> but that also means that my app is now responsible for handling all
> dial intents. Which I don't want. I only want to intercept numbers
> entered from the home screen. If I leave out the second intent-filter,
> alphabetic input is received, but numbers go to the dialer.
>
> Anyone know how to do this?
>
> thanks,
> --dave
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to