Unfortunately, Filter search (as defined in the SearchManager
documentation) is no longer supported, but the changes did not make it
into the 0.9 SDK documentation.  The updated documentation will be
available in the next SDK release.

If you would like to support live (filter-as-you-type) search, there
are now two alternatives available (and these *are* available in the
0.9 SDK).

* If you wish to filter the data displayed in a local presentation,
say in a ListView, you'll want to look into using
android.widget.Filter, which can be applied to any of the classes that
implement android.widget.Filterable.

* If you wish to use the SearchManager UI, you can implement a
Suggestions Provider which provides a list of potential answers as the
user types.  This UI is often used to display a filtered list of
recent search queries, but you could also use it to display a filtered
list of actual results.

Regarding what you are seeing on your application, if you wish to use
the Search Manager, I would suggest removing the filtering mode
flag(s) and see if normal query search is working for you.

Apologies for any confusion with the older documentation.

--Andy
(Google engineer)


On Fri, Sep 12, 2008 at 1:46 AM, friedger <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I try to add filter search to my application, query search works fine.
> I can type in a search term press enter and the result is presented.
> However, I don't get a new intent when I change the search term.
>
> (from doc of SearchManager: You will receive a new ACTION_SEARCH
> Intent each time the user enters or changes the search text. You must
> receive and handle these new intents by overriding onNewIntent.)
>
> I added the filterMode bit but nothing happens. What else do I have to
> do in order to enable filter search?
>
> Here is my
> search xml:
>
> <searchable xmlns:android="http://schemas.android.com/apk/res/android";
>     android:label="@string/app_name"
>     android:hint="@string/searchhint"
>     android:icon="@drawable/application001a"
>     android:searchMode="filterMode|filterModeQuickStart|
> showSearchLabelAsBadge">
>  </searchable>
>
>
> and the manifest xml:
>
> <activity android:name=".MainActivity"
>                                        android:label="@string/app_name"
>                                        
> android:icon="@drawable/application001a"
>                >
>            <intent-filter>
>                <action android:name="android.intent.action.MAIN" />
>                <category
> android:name="org.openintents.category.MAIN" />
>            </intent-filter>
>
>            <intent-filter>
>                                <action 
> android:name="android.intent.action.SEARCH" />
>                                <category 
> android:name="android.intent.category.DEFAULT" />
>                        </intent-filter>
>                        <meta-data android:name="android.app.searchable"
>                                android:resource="@xml/searchable" />
>        </activity>
>
>
> Cheers,
> Friedger
> >
>

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