In our application we enabled search (triggered when the user pressed the
Search/Magnifying-glass key on device) in a number of Activities using these
entries in the manifest:
<meta-data
android:name="android.app.default_searchable"
android:value=".Search.SearchActivity" />
<!-- Search activity -->
<activity android:name=".Search.SearchActivity"
android:launchMode="singleTop"
android:label="@string/search_activity_name" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>
After any device update to JellyBean we have lost this functionality with the
Google Search being triggered instead of our own Search activity.
After investigating, I found this page
(http://www.android.com/about/jelly-bean/) that in the "Google Search" section
states:
"For devices with a hardware search key, you can tap it to launch Google
Search."
So, is that "Just the way it is" and Google have taken over complete control of
the Search key when in our app?
-> We will have to add a Search menu or action bar option in all activities
to get search back...
or is there a way to recover the previous behavior, where we can have our
search activity triggered by the Search Key?
Thanks
--
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