If you are wanting to launch your app when the search button is
long-pressed, you can do it like this:
<activity
android:name=".
SearchLaunchActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
>
<intent-filter>
<action android:name="android.intent.action.SEARCH_LONG_PRESS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------
On Thu, Dec 3, 2009 at 7:09 AM, Benjamin <[email protected]>wrote:
> Hey ho,
>
> how can i use the ACTION_SEARCH intent to open on of mine activities?
>
> This code doesn't work:
> <activity android:name=".activity.SearchOverlay"
>
> android:theme="@android:style/Theme.Translucent.NoTitleBar">
> <intent-filter>
> <action
> android:name="android.intent.action.SEARCH" />
> <category
> android:name="android.intent.category.DEFAULT" />
> </intent-filter>
> </activity>
>
>
> i would appreciate any help.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en