how can a user set the update frequency of a widget?

johnb4a

Member
Licensed User
Longtime User
Hi,

How can a user choose the update frequency of a widget.

if i have 3 radiobuttons in activity module with say 6hr ,12hr and 24hr. When user selects the radiobutton how can i pass the value to ConfigureHomeWidget in service module.

Please help me if possible with an example.

Regards,

John
 

Inman

Well-Known Member
Licensed User
Longtime User
I tried to set the UpdateIntervalMinutes parameter of ConfigureHomeWidget with a variable declared as Int. But during compilation I got the error "An integer constant is expected". So this value cannot be changed at runtime?
 
Upvote 0

johnb4a

Member
Licensed User
Longtime User
Hi Erel,

Can u please show with an example how to use StartServiceAt to update widget. i tried using timer. it works fine for very short peroid of time but not for longer period. i want user to choose from options 6, 12, 24 hr. if user selects 6 it should update every 6 hrs. if 12 selected it should change from 6 to update every 12hr.

Please help me.
 
Upvote 0
Top