I'm adding search to my app following the instructions found here:
http://developer.android.com/intl/de/guide/topics/search/search-dialog.html.
When I make my main activity searchable, then I can search it. But, I
found the multiple search screens after multiple searches to be
annoying since I have to press back through each one. The instructions
also addressed this by suggesting I create a separate search activity
with android:launchMode="singleTop". According to the instructions, if
I add the following Meta tag to my Application in the manifest, then I
can get the searchable activity from any screen.
<meta-data android:name="android.app.default_searchable"
android:value=".MySearchableActivity" />
However, when I try this, the searchable activity does not start when
I press the search button. If I make my searchable activity the main
activity, it works. What am I missing?
Here's my searchable activity in the manifest:
<activity android:name="Search" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data android:name="android.app.searchable"
android:resource="@xml/searchable"/>
</activity>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en