Åke Johansson Bravida Member Licensed User Longtime User Jun 17, 2018 #1 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 Can someone perhaps explain this ? Rgds Åke Artklo
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 Can someone perhaps explain this ? Rgds Åke Artklo
Erel B4X founder Staff member Licensed User Longtime User Jun 17, 2018 #2 Please use [code]code here...[/code] tags when posting code. Upvote 0