hello Erel,
not when I rotate function is called rv_RequestUpdate?
I am attaching pictures. now I see another problem: that the image is truncated.
Horizzontal
Vertical
Sub Service_Create
.....
rv = ConfigureHomeWidget("L1", "rv", 0, "Widget", True)
End Sub
Sub Service_Start (StartingIntent As Intent)
' If a widget is removed from homescreen we don't need to do anything
If StartingIntent.Action = "android.appwidget.action.APPWIDGET_DELETED" Then Return
' Handle the widget events (RequestUpdate and Disabled)
If rv.HandleWidgetEvents(StartingIntent) = False Then
' If the action is not handled by HandleWidgetEvents() then we
' probably were called by StartService() or StartServiceAt().
' So just update the widget.
rv_RequestUpdate
End If
' We have to be sure that we do not start the service
' again if all widgets are removed from homescreen
If StartingIntent.Action <> "android.appwidget.action.APPWIDGET_DISABLED" Then
StartServiceAt("", TimeToNextMinute, False)
Log("chiamato start StartingIntent.Action " & DateTime.Date(DateTime.Now) & " " & DateTime.time(DateTime.Now))
End If
' ToastMessageShow("Service Start: " & DateTime.Date(DateTime.Now) & " " & DateTime.time(DateTime.Now), False)
End Sub
Sub Service_Resume
ToastMessageShow("SubService_Resume...", True)
End Sub
Sub Service_Pause (UserClosed As Boolean)
ToastMessageShow("Service_Pause...", True)
End Sub
Sub rv_RequestUpdate
QueryAndFillOrdini
QueryAndFillFatture
QueryAndfillPartiteAperte
QueryAndfillPartiteScadute
QueryAndfillClientiAttivi
QueryAndfillNuoviClienti
Log("rv.UpdateWidget")
rv.UpdateWidget
End Sub