views:

76

answers:

2

I am looking for example for Google Search like home page widget from where user can type-in keywords to search within my app. Youtube video here.

I followed the tutorial at the dev guide. However, it lists the available RemoteViews, and there is no EditView. In such case how can I provide a editable text-box. I want to build a widget similar to SearchManager UI, but available as widget at home-screen.

+1  A: 

EditText is not available on widgets. That's why there's no EditText on the search widget. It just looks like EditText. When you click over the search widget it starts another activity with EditText.

Fedor
thanks for you answer. however i see this video (at 0m55s) where they show typing on home screen. how's that achieved? http://www.youtube.com/watch?v=zLxVQi0lRQ4#t=0m55s
Ankit Jain
I see. It never works this way for me. Search activity is always started.
Fedor
+1  A: 

As above, EditText is not available for widgets. The video you pointed to is of a fake Android. That is not a real Android device and was made for that video only.

Moncader