Reputation:
I am developing an app for samsung galaxy S2, version 2.3.3. I want to implement search bar on it. Can anyone help me about this. I tried android developers guide but all in vain. Any help will be appreciated.
Upvotes: 1
Views: 1488
Reputation: 39470
You'll need (1) a searchable.xml like ekjyot just suggested and (2) a content provider. It's a pretty good sized project so hopefully you have a bit of Android experience already. One AWESOME resource is this article on the Android developer's site: http://developer.android.com/resources/articles/qsb.html. Good luck and come back if you have specific questions!
Upvotes: 0
Reputation: 2227
Make a searchable.xml like :
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/search_label"
android:searchSettingsDescription="@string/settings_description"
android:includeInGlobalSearch="true"
android:searchSuggestAuthority="dictionary"
android:searchSuggestIntentAction="android.intent.action.VIEW">
</searchable>
You must refer to the following link.It will help you.
http://developer.android.com/resources/articles/qsb.html
Upvotes: 1