Hi, I'm upset by the search dialog as shown at http://developer.android.com/guide/topics/search/search-dialog.html
The search dialog is not displayed when I click the search button on my device. here is my simple manifest file:
<application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".Main" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <meta-data android:name="android.app.default_searchable" android:value=".Other" /> </activity> <activity android:name=".Other"> <intent-filter> <action android:name="android.intent.action.SEARCH" /> </intent-filter> <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/> </activity> </application>
My res / xml / searchable.xml is as follows:
<searchable xmlns:android="http://schemas.android.com/apk/res/android" android:label="lol" android:hint="search" > </searchable>
in Main.java onSearchRequested () is started, but the search dialog is not displayed.
Am I missing something?
bline source share