I try to start my app in foreground with this code but I don't understand in line 2 what fm is? I am not so experienced in B4A. Perhaps someone can give me a clue?
Sub Service_Start (StartingIntent As Intent) fm.HandleIntent(StartingIntent) Sleep(0) 'allow the MessageReceived event to be raised.
Service.StopAutomaticForeground
End Sub
And this widget what is rv?
Sub Service_Start (StartingIntent As Intent) rv.HandleWidgetEvents(StartingIntent) Sleep(0)
Service.StopAutomaticForeground
End Sub