Filter-Search Applications

by friedger » Fri, 12 Sep 2008 16:46:57 GMT


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



Filter-Search Applications

by friedger » Sat, 13 Sep 2008 03:45:04 GMT


 Has anyone experience with filter search?
Friedger



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Filter-Search Applications

by Andrew Stadler » Sat, 13 Sep 2008 09:07:42 GMT


 nfortunately, 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:

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. {WTA} Cara install aplikasi keMicroSD Card di 1.6 Donut

Niubi, from fieldnya nanti dulu jadi nama asli !!!!!!!!!!!!!!!!!!!! j/k
Huehehehe, sama tanda baca !/? gak perlu selalu menutup kalimat, santai aja
bro ngetiknya :)

--rc
sent from Kang-o-rama v0.9a0 SP1



> 

2. Slow Eclipse on OS X

I am running Eclipse Galileo on an Intel Mac and after using it for a
bit, it becomes very slow.  By slow I mean switching between tabs and
scrolling through source becomes nearly unusable.  I have to close
Eclipse and re-open it, and that usually only solves the problem for a
short time.

Has anyone else ran into this and discovered a way to fix it?

Thank you.

-- 

3. Help with a click effect for my own custom button.

4. Windows Manager (New Look & INTERFACE) for Android

5. Change Android graphic display to directfb

6. Eclipse ADB Error

7. Sqlite database problem