Sub Service_Start (StartingIntent As Intent)
Service.StartForeground(nid, CreateNotification("MYAPP", "icon"))
Private NumOfSeconds As Int = 1800
StartServiceAt(Me, DateTime.Now + NumOfSeconds * DateTime.TicksPerSecond, True)
If ArtsNIDs.Size > 0 Then
Private prevArtCounter As Int = KVSCounts.Get(FIELD_ARTS_COUNTER)
If ArtsNIDs.Size > prevArtCounter Then
Dim n As Notification = CreateNotification("There is some news for you! Find out which ones...", "smiley")
n.Notify(nid)
Else
Log("ARTICLES - NO NEWS!")
End If
KVSCounts.Put(FIELD_ARTS_COUNTER, ArtsNIDs.Size) '---> 'Update article counter
End If
End Sub