Lee Jarvis wrote:
> I realize there is many ways to search a through a list (you can just
> start type, or you can use the hardware search button to open the
> search dialog).
> 
> I've seen in many applications there is a button to open the search
> dialog, as if you pressed the hardware search button. I've searched
> around like crazy but can't find anything regarding this. Could anyone
> point me in the right direction?

Call startSearch() in your Activity:

http://developer.android.com/reference/android/app/Activity.html#startSearch(java.lang.String,%20boolean,%20android.os.Bundle,%20boolean)

You can see this in action here:

http://github.com/commonsguy/cw-advandroid/tree/master/Search/Lorem/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, $35/Year

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to