Invoke Activity using physical Search button

by fr4gus » Wed, 15 Dec 2010 01:20:44 GMT


Sponsored Links
 Hi All,

I was looking at Search Framework documentation and it looks pretty
cool  http://developer.android.com/guide/topics/search/index.html. 

I also was looking at Twitter and Facebook applications for Android
and I notice both applications handle search button different. When
user press search button, it will immediately display an Activity,
instead of the regular search box dialog.

I would like to start a Search activity in the same way as Twitter and
Facebook, since I would like to offer filter options.

Any ideas how this could be done?

Thanks,

-f4

-- 



Re: Invoke Activity using physical Search button

by Mark Murphy » Wed, 15 Dec 2010 02:16:00 GMT


 Override onSearchRequested() and do whatever you want, IIRC.






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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 


Sponsored Links


Other Threads

1. Bro wilber Thanks invitation Googlewave-nya

Baru sadar tadi pagi hehehe
Mantapppp

Thanks bro

Ids

www.indraracing.com


--~--~---------~--~----~------------~-------~--~----~
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

2. Stop an SMS from being sent from default SMS client.



I sincerely hope that it is impossible without firmware modifications. I
certainly no of know way to achieve what you are seeking. And what
little you have achieved is outside of the public SDK and therefore is
likely to break in the future and on OEM-customized devices.

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

Android 1.6 Programming Books: http://commonsware.com/books

-- 

3. Using third party libraries

4. DalvikVM could not find field after ProGuard Obfuscation

5. Help Required: Invoke Email Client from another android application

6. gdata-api

7. How to get my name account ie: sa...@gmail.com