Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok never mind. After some research I found out that the android documentation for creating a search interface isn't complete: some things were left out like</p> <p>1) No string should be hardcoded in the searchable conifguration</p> <p>2) I should have this code in the <code>&lt;activity&gt;</code> which does the search:</p> <pre><code> &lt;meta-data android:name="android.app.searchable" android:resource="@xml/your search configuration file's name" /&gt; </code></pre> <p>3) I should also have this code in the <code>&lt;activity&gt;</code> where I want the <code>SearchView</code> to show up in the <code>ActionBar</code></p> <pre><code> &lt;meta-data android:name="android.app.default_searchable" android:value=".ActivityWhichCarriesOutTheSearch" /&gt; </code></pre> <p>For the sake of completion: Here is my manifest file which works: </p> <pre><code>&lt;application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="false" android:theme="@style/AppTheme"&gt; &lt;activity android:name=".MainActivity" android:label="@string/app_name" android:theme="@style/AppTheme.NoActionBar"&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;meta-data android:name="android.app.default_searchable" android:value=".SearchActivity" /&gt; &lt;/activity&gt; &lt;activity android:name=".SearchActivity" android:label="@string/app_name"&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;/application&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload