Android search dialog does not open on button/action press

Ethibegooge

New Member
I need some second eyes on this. I have followed the basic instructions here to set up search in the application I'm working on, yet I am unable to make the search dialog appear, both using the device search button and my search action on the action bar.As far as the action bar is concerned, I have confirmed that onSearchRequested is being called on the activity when the action is pressed. Any resources referenced in these files are existing - the application runs without errors.My searchable.xml:\[code\] <?xml version="1.0" encoding="utf-8"?> <searchable xmlns:android="http://schemas.android.com/apk/res/android" android:label="@string/search_label" android:hint="@string/search_hint" > </searchable>\[/code\]The activity definition of my search handling activity in AndroidManifest.xml:\[code\] <activity android:name=".SearchActivity"> <intent-filter> <action android:name="android.intent.action.SEARCH" /> </intent-filter> <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/> </activity>\[/code\]For each activity in which I would like search, I have added:\[code\] <meta-data android:name="android.app.default_searchable" android:value="http://stackoverflow.com/questions/11325832/.SearchActivity" />\[/code\]When I press any of the buttons mentioned above, nothing happens. Nothing happens in logcat either. Since onSearchRequested is being called, I'm suspecting there is something wrong with my configuration, but I have been unable to find it so far.In case it might be important, I can point out that my SearchActivity extends RoboFragmentActivity.
 
Back
Top