Hi, I am checking for Location Periodically. I have multiple activity in my application. When I working on Second Activity, if the Location Service starts, it goes background of the Main Layout.
I am starting the Service from Main Activity as below ...
It starts the service through StartServiceAt function periodically. I am running the activity through AppCompat slide menu. Any help on how to run the service so that Second or Other Activity don't go Background. Thank You.
I am starting the Service from Main Activity as below ...
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
If FirstTime Then
CreatePreferenceScreen
StartService(GPSLocTrck)
End If
End Sub
It starts the service through StartServiceAt function periodically. I am running the activity through AppCompat slide menu. Any help on how to run the service so that Second or Other Activity don't go Background. Thank You.