Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim rv As RemoteViews
Dim vari As Int
End Sub
Sub Service_Create
rv = ConfigureHomeWidget("wid2", "rv", 0, "Widget Name")
End Sub
Sub Service_Start (StartingIntent As Intent)
If rv.HandleWidgetEvents(StartingIntent) Then Return
End Sub
Sub Service_Destroy
End Sub
Sub rv_RequestUpdate
rv.UpdateWidget
End Sub
Sub rv_Disabled
StopService("")
End Sub
Sub btn_tip_click
ToastMessageShow("test",True)
rv.UpdateWidget
End Sub
Sub btn_buc_click
vari=vari+10
rv.SetText("lbl_buc",vari)
rv.UpdateWidget
End Sub