Isaac Wagner wrote:
> I'm creating my first widget and ran into a snag.  I have several
> buttons on this widget and need a way to register an onClick action
> for each of the buttons.  So far I've only found examples where they
> start a configuration activity from a widget button.  Does someone
> have example code on using buttons in home screen widgets?  Thanks.

http://github.com/commonsguy/cw-andtutorials/tree/master/36-AdvAppWidget/LunchList/
http://github.com/commonsguy/cw-advandroid/tree/master/AppWidget/TwitterWidget/

The latter has two buttons, one that pops the configuration activity and
one that refreshes the widget contents.

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

Android Consulting: http://commonsware.com/consulting

-- 
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