It is still built in to home, like it was in previous versions.  (And it
does far more than an EditText -- it has a auto complete text view, which is
customized for special behavior there.)

On Thu, May 14, 2009 at 5:37 AM, pMay <eniak.i...@googlemail.com> wrote:

>
> How did they code the Google Search Widget?
> Is that a "hack"?
>
> On Apr 16, 7:47 am, Jeff Sharkey <jshar...@android.com> wrote:
> > Jon, you're right, there isn't a direct way of including an EditText
> > into a widget.
> >
> > The major reason for this is we don't have a good way of identifying
> > how that text should be sent back across a PendingIntent.  To solve
> > this from the framework side, one approach would to add the text to
> > the extras bundle with the R.id of the EditText as the key, and using
> > Intent.fillIn() when sending the PendingIntent.  But then we run into
> > issues when there is a button that should also trigger an action: do
> > we bundle any+all EditText values with that intent as well?
> >
> > Instead of solving this problem with the hack described above, we're
> > holding off until we come up with a better solution.
> >
> > A workaround in the meantime might be to have the PendingIntent launch
> > an activity with Theme.Dialog or Theme.Panel that contains an
> > EditText.
> >
> > j
> >
> >
> >
> > On Wed, Apr 15, 2009 at 8:00 PM, Jon Colverson <jjc1...@gmail.com>
> wrote:
> >
> > > Hello.
> >
> > > I've been looking at the new 1.5_pre SDK today, and the new AppWidget
> > > API in particular. I was hoping to write a widget for posting to
> > > Twitter as part of my nanoTweeter app. The interface I had in mind
> > > would look very similar to the Google Search widget, with an EditText
> > > and a submit Button, but as far as I can see there's no way to get at
> > > user input in a RemoteViews. Is that right, or am I overlooking
> > > something?
> >
> > > Thanks.
> >
> > > --
> > > Jon
> >
> > --
> > Jeff Sharkey
> > jshar...@android.com
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to