How to declare default searchable activity
<p>I am trying to implement search in my application.</p>

<p>My application contain 4 activities and I want to add the search dialog only on 3 of them while only one of them (ProductsActivity) will be the default context.</p>

<p>unfortunately while I activate the search I keep getting the following error:
"Key android.app.default_searchable expected String but value was a java.lang.Integer.  The default value  was returned."</p>

<pre><code> &lt;activity android:label="@string/app_name" class=".AppEntry" android:name=".AppEntry"&gt;
    &lt;intent-filter&gt;
        &lt;action android:name="android.intent.action.MAIN" /&gt;
        &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
    &lt;/intent-filter&gt;
 &lt;/activity&gt;
 &lt;activity android:name=".category.CategoriesListActivity"&gt;
    &lt;intent-filter&gt;
        &lt;action android:name="android.intent.action.SEARCH" /&gt;
        &lt;/intent-filter&gt;
        &lt;meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/&gt;
 &lt;/activity&gt;
 &lt;activity android:name=".product.ProductsActivity"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.SEARCH" /&gt;
        &lt;/intent-filter&gt;
        &lt;meta-data android:name="android.app.default_searchable" android:resource="@xml/searchable"/&gt;
    &lt;/activity&gt;
</code></pre>

<p>Any idea why ? </p>

<p>Thanks</p>
