Susan wrote:
> I have built a widget that contains a button and an editable TextView
> (that behaves like an EditText) much like the native Google Search bar
> widget. How can I access the text that the user has typed into the
> TextView? In an Activity I would just use findViewById(), but of
> course I can't do that in the AppWidgetProvider. (I get the error
> message "The method findViewById(int) is undefined for the type
> Widget.")

App widgets cannot have EditText widgets. The list of valid widgets is here:

http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout

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

Android Training in Germany, 18-22 January 2010: http://bignerdranch.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to