Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim OnOff As Int
Dim rv As RemoteViews
Dim premi As Bitmap
End Sub
Sub Service_Create
rv = ConfigureHomeWidget("Widget", "rv", 0, "Bottoni",True)
Tasto.Initialize(File.DirAssets, "OnlyOn.png")
OnOff=0
End Sub
Sub Service_Start (StartingIntent As Intent)
End Sub
Sub Service_Destroy
End Sub
Sub Button1_Click
If OnOff=0 Then
premi.Initialize(File.DirAssets, "On.png")
OnOff=1
Else
premi.Initialize(File.DirAssets, "Off.png")
OnOff=0
End If
End Sub