Hello, thanks for your answers. I finished my app, but I have a last problem:
The Activity (it is only one) puts a date in a Public process global ("ServiceDatum").
Sub Process_Globals
Private n As Notification
Public ServiceDatum2 As Long
End Sub
Sub Service_Create
End Sub
Sub Service_Start (StartingIntent As Intent)
StartServiceAt(Me, DateTime.Now + 10 * DateTime.TicksPerSecond, True)
ServiceDatum2 = Main.ServiceDatum
If ServiceDatum2 <= DateTime.Now Then
n.Initialize
n.Icon = "icon"
n.SetInfo("Notizen","Notiz zu erledigen",Main)
n.AutoCancel = True
n.Notify(1)
n.Light = True
Else
End If
End Sub
I dont want the Service to start when I start the activity or when the activity is open. I tried only do "if IsPaused(Main)", but this didnt word.
Second problem is, that if I press the notification the activity does not open (as defined in "n.SetInfo("Notizen","Notiz zu erledigen",Main)"), it appears just a empty black screen with the title.
Any solutions?