When my app is in the background, I use a timer to play a sound and bring the B4XMainPage to the foreground when certain conditions are met. The sound was played and B4XPage.ShowPage("MainPage") was called, but the page didn't appear and no log entry either.
I tried put the timer first in B4XMainPage and then in Starter service, and the result is the same.
Did I miss anything, or it's as designed?
I tried put the timer first in B4XMainPage and then in Starter service, and the result is the same.
Did I miss anything, or it's as designed?
timer tick event:
Sub tmrNotification_Tick
Log("entering tick")
If Rnd(0,9)>5 Then
'play sound file
soundPool1.Play(soundPoolLoadId, 1, 1, 1 , 0, 1)
Log("playing soundPool1")
B4XPages.ShowPage("MainPage") 'no page nor log appears
End If
End Sub