Sub Process_Globals
Private icon As Bitmap
End Sub
'Called when an intent is received.
'Do not assume that anything else, including the starter service, has run before this method.
Private Sub Receiver_Receive (FirstTime As Boolean, StartingIntent As Intent)
Log("Starting intent: " & StartingIntent)
icon.Initialize(File.DirAssets, "ellustr_24x24.png")
Dim n As NB6
n.Initialize("default", Application.LabelName, "DEFAULT").SmallIcon(icon)
n.AddButtonAction(icon, "Check In", MyReceiver, "Check In")
Dim cs As CSBuilder
n.AddButtonAction(Null, cs.Initialize.Color(Colors.Red).Bold.Append("Close").PopAll, MyReceiver, "Close")
n.DeleteAction(MyReceiver, "Delete")
n.Build("14 day check up", "This is your 2 week check in, would you like to review your posture?", "tag", Main).Notify(1)
End Sub