Hi
I would be grateful if someone can help (from the ground up) trying to get a service to load in the foreground since the service (and it's activity) always seems to terminate by Android after a few hours.
I know StartForeground is in the Core library but the compiler doesn't recognise the command (and is not even an autocomplete option when typing the command.
So currently in MAIN Activity_Pause... I have simply StartService(serviceBootup)
How can this be changed to start in the foreground?
Many thanks,
Azhar
I would be grateful if someone can help (from the ground up) trying to get a service to load in the foreground since the service (and it's activity) always seems to terminate by Android after a few hours.
I know StartForeground is in the Core library but the compiler doesn't recognise the command (and is not even an autocomplete option when typing the command.
So currently in MAIN Activity_Pause... I have simply StartService(serviceBootup)
How can this be changed to start in the foreground?
Many thanks,
Azhar