Android Question [SOLVED] Is there a limit on refreshing widget manually

konradwalsh

Active Member
Licensed User
Longtime User
Hello
I am using this sub in a service for my widget
B4X:
Sub MyUpdateWidget
   
    Dim DaysPointsUsed As String = Main.UsersDayPointsUsedForToday
    Dim WeeksPointsUsed As String = Main.UsersWeekPointsUsedForToday
    If DaysPointsUsed = "" Then
        DaysPointsUsed = 0
       
    End If
    If WeeksPointsUsed = "" Then
        WeeksPointsUsed = 0
    End If
    ToastMessageShow(DaysPointsUsed, False)
    rv.SetText("lblDaysPoints",DaysPointsUsed & " / " & Main.UsersDailyPointsTotal)
    rv.SetText("lblWeeksPoints",WeeksPointsUsed  & " / " & Main.UsersWeeklyPointsTotal)
    'do more changes if needed
   
End Sub

I put the toast message in to make sure the new value for DaysPointsUsed had in fact changed however the next two lines dont update the Labels.

If I force close the app or reinstall it will run this and update the labels.. But only once..

I put a refresh button on the widget to manually test and it runs but without an update.
 
Top