Android Question startservice with multiple services

sorex

Expert
Licensed User
Longtime User
Hello,

In an app (hallway sound monitoring) I sometimes have a crash that causes the app to close.

I read that some of the crashes can be captured by using the extra starter service.

Now I was wondering how I should implement this.

My app has:

1 autostart networking/stayinfront service
2 extra services (broadcaster/receiver of which only 1 is running depending on what the device is)

Should I add the extra starter service or should I just copy that application_error sub to my main autostart service?
 

DonManfred

Expert
Licensed User
Longtime User
1 autostart networking/stayinfront service
2 extra services (broadcaster/receiver of which only 1 is running depending on what the device is)
1. Let it be the extra service
2. Same as 1.
3. Implement the starter service too. Do not use the Starter service as Foreground service and also do not set startatboot on it too. Use any other service for this.
 
Last edited:
Upvote 0

sorex

Expert
Licensed User
Longtime User
interesting... when using the false return code the app doesn't even close but just goes on while I received a mail with the crash info.

this rox.
 
Upvote 0
Top