In 1.5 many widgets could use EditText (ala Google Search "widget"),
but unfortunately EditText is not a @RemoteView.  My initial thinking
is that EditText fields should require a "submit" Button/ImageButton.
So the procedure for getting a value from an EditText:

- init your RemoteViews
- call a method like for each EditText: RemoteViews.attachEditToButton
( int edit_text_id, int button_id, String extra_key)
- setup your Button's PendingIntent via
RemoteViews.setOnClickPendingIntent(...)
- now, when your Button is clicked, the Strings from any EditTexts
attached to it would be added to the Extras for the Button's Intent
using the Extra Key supplied in attachEditToButton().

Any thoughts or pitfalls?  Seems like this would be fairly easy to
implement.

Thanks,
Zach
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" 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-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to