When I touched on the notification icon, I was expecting the action will bring the app, which was "minimized" in the background, back to the foreground. But that didn't happen. The app has a Starter service and Main. The Main loadlayout the GUI form.
I am wondering what is missing to enable the touching of notification icon to bring the app to the fore.
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Form")
End Sub
In Starter Service ...
B4X:
Sub Process_Globals
Dim Notif As Notification
End Sub
Sub Service_Create
Notif.Initialize
Notif.Icon = "icon"
Notif.Sound = False
Notif.Vibrate = False
End Sub
Sub Service_Start (StartingIntent As Intent)
Notif.SetInfo("MyApp","App Running...",Me)
Notif.Notify(1)
End Sub