tags:

views:

16

answers:

0

I'm working on a dictionary application very similar to the Searchable Dictionary example. It's pretty simple, having 3 activities that show letters, words, and definitions (actLetterList, actWordList, and actShowDef). I have a ContentProvider set up, and the search is handled through the actWordList activity. When I am viewing that activity and click the search button, it pulls up the correct QSB. However whenever I click on the Search button in any other activity, it pulls up the generic QSB. I'm sure the issue is in my manifest, I just can't seem to see it.

I thought having the meta data tag with default_searchable was the key piece. Am I missing something else?

<?xml version="1.0" encoding="utf-8"?>

    <meta_data android:name="android.app.default_searchable"
        android:value=".actWordList" />

    <activity android:name=".actLetterList"
              android:label="@string/app_name"
              android:theme="@android:style/Theme.NoTitleBar">

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <activity android:name=".actWordList">
        <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>

    <activity android:name=".actShowDef">
    </activity>

    <provider android:name="SearchProvider"
        android:authorities="apps.foo.provider.myDictionary"
        android:syncable="false" />
</application>
<uses-sdk android:minSdkVersion="4" />