Almost there now, I can kill my service when app closes, then detect service is not running when the app is opened again. When I detect the service is not running I create it again, but I get a crash because serial is already initialised and I re-init it.
I thought it would be un-iited as the service that created it was closed, but obviously something's afoot.
So option 1 is to check if it's inited before initialising it, but is there an option to definitively destroy it when i exit my app instead? That would seem the safer option but not sure how to go about it.
I thought it would be un-iited as the service that created it was closed, but obviously something's afoot.
So option 1 is to check if it's inited before initialising it, but is there an option to definitively destroy it when i exit my app instead? That would seem the safer option but not sure how to go about it.