Sub Globals
Dim in As Intent
End Sub
Sub Activity_Create(FirstTime As Boolean)
in = Activity.GetStartingIntent
If (in <> Starter.GlobalIntent) Then
Starter.GlobalIntent = in
'Start the tips activity only the app start from click in notification
If in.HasExtra("Notification_Tag") And (in.GetExtra("Notification_Tag") = "odNotify") Then
StartActivity(tips) 'I do not want to open the Tips activity if the app is opens through the list of recent apps
End If
End If
Activity.LoadLayout("layMain")
End Sub
Sub Button1_Click
StartNotification
Activity.Finish
End Sub
Sub StartNotification
Dim n As Notification
n.Initialize2(n.IMPORTANCE_HIGH)
n.Icon = "icon"
n.AutoCancel = True
n.Vibrate = False
n.Sound = True
n.SetInfo2("Hello", "Tip of day", "odNotify", Me)
n.Notify(1)
End Sub