Sub Process_Globals
End Sub
Sub Service_Create
rv = ConfigureHomeWidget("My_Widget", "rv", 0, "My_Logger")
Main.lc.Initialize("lc", Main.p.GetSettings("android_id"), Main.publicKey, "eeefff".GetBytes("UTF8"))
Main.lc.SetVariableAndValue(Main.test_1, "256")
Main.lc.CheckAccess
End Sub
Sub Service_Start (StartingIntent As Intent)
If rv.HandleWidgetEvents(StartingIntent) Then Return
End Sub
Sub lc_Allow
Log("Allow")
ToastMessageShow("License Valid", True)
End Sub
Sub lc_DontAllow
Log("DontAllow")
ToastMessageShow("Not Licensed", True)
End Sub
Sub lc_Error (ErrorCode As String)
Log("error: " & ErrorCode)
ToastMessageShow("Error Closing application.", True)
End Sub
Sub rv_RequestUpdate
rv.UpdateWidget
End Sub
Sub rv_Disabled
StopService("")
End Sub
Sub Service_Destroy
End Sub