Mark,

I know EditTexts aren't allowed in Widgets -- I have a TextView, not
an EditText. (I say it behaves like an EditText because focusable and
editable are set to true.) Additionally, displaying the TextView or
editing text works perfectly. The only "problem" is that I don't know
how to access it programmatically. =( I also need to access properties
of a Button, for example, so I'd still really like to know how to do
it. =)

Thanks!

On Nov 23, 3:09 pm, Mark Murphy <[email protected]> wrote:
> 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#Creat...
>
> --
> 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