On Tue, Jun 29, 2010 at 11:31 PM, cellurl <gpscru...@gmail.com> wrote:
> I have a working widget. When pressed, it launches a class.
>
> Instead of launching a class, I just want it to change the text in the
> widget and also change setOnClickPendingIntent to something different.

Use a service or broadcast PendingIntent, routing it to some component
of yours that changes the text and PendingIntent.

See:

http://github.com/commonsguy/cw-andtutorials/blob/master/34-AdvAppWidget/LunchList/src/apt/tutorial/WidgetService.java

and:

http://github.com/commonsguy/cw-andtutorials/blob/master/34-AdvAppWidget/LunchList/src/apt/tutorial/AppWidget.java

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

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to