• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Creating your own Widget problem ?

 
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am building a Widget which would give me temperature of a particular city. Now to create a widget,
I am using a Activity class , where I supply the city name and state name to the widget.

But before the View of the Activity class is displayed the onUpdate method of my WidgetProvider is
called and it tries to read the values of city name and state name, and it creates a widget.

I want the onUpdate of WidgetProvider should be called only after I press save button on my View of
the Activity.

Please throw some light on this ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic