Hello there
I´ve got a question
Let´s say I have a timer (Timer1) and a label (lblCountdown) and a button (btnStart) and the situation is the following:
1. open the app, timer is initialized
Timer1.Initialize("timer1",1000)
2. click the start button, timer1 is enabled
Sub Button1_Click
Timer1.Enabled=True
End Sub
The code goes let´s say:
Sub Timer1_tick
Label1.text=Label1.text+1
Dim n As Notification
n.Initialize
n.Vibrate=False
n.Sound=False
n.Icon = "icon"
n.SetInfo("CountDown", Label1.text, "")
n.Notify(1)
End Sub
Now when the counter counts up to 10,20, 60 or anything I set up I would like to play a sound, beep or anything, which it also does - IF the app is in foreground and IF the screen is ON(Sure I can set the screen to be awake inapp), the thing is as soon as I open a new app(messaging etc) the counter app doesn´t play sound or beep as soon it reaches 10,20,60.
I´ve tried to solve it with service but the best I achieved is to put app in foreground as soon I open any other app.
Thank you very much