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

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?




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)  |  | 

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


Sponsored Links

Other Threads

1. Bro wilber Thanks invitation Googlewave-nya

Baru sadar tadi pagi hehehe

Thanks bro


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

To post to this group, send email to

To request to subscribe to this group:


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) |

Android 1.6 Programming 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: