Hi,
I have a widget and i am trying to set the update frequency.
I am using a preference manager (list) having options 1 hr and 24 hr to set the update frequency. it is working fine but if the frequency is set to 24 hr and the user changes it to every 1 hr, the changes or the updates only reflects after the previous set period. it this case only after 24 hr. how can i get changes reflect immediately? it should immediately start updating every 1 hr rather waiting for 24 hr.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
how can i do this.
thanks in advance.
			
			I have a widget and i am trying to set the update frequency.
I am using a preference manager (list) having options 1 hr and 24 hr to set the update frequency. it is working fine but if the frequency is set to 24 hr and the user changes it to every 1 hr, the changes or the updates only reflects after the previous set period. it this case only after 24 hr. how can i get changes reflect immediately? it should immediately start updating every 1 hr rather waiting for 24 hr.
			
				B4X:
			
		
		
		Sub Service_Start (StartingIntent As Intent)
If rv.HandleWidgetEvents(StartingIntent) = False Then
         
      rv_RequestUpdate
   End If
   
If manager.GetString("list2") = "1 hr" Then
   
StartServiceAt("", DateTime.Now + 60 * DateTime.TicksPerMinute, True)
   
Else If manager.GetString("list2") = "24 hr" Then
StartServiceAt("", DateTime.Now + 1440 * DateTime.TicksPerMinute, True)
End If
   
End Subhow can i do this.
thanks in advance.
