I have service that receive well all sms messages and send them via UDP to PC. Of course if service is working in backgroud'
I have added permission to receive SMS and register my service in MANIFEST
and now there is small problem because if I close my application definitely ( Exitapplication ) then when new SMS is incomning, android try start my service and CRASH, application were closed
so my question is how to prevent such situation ? Can I dynamically register my service into manifest and automaticaliy unregister just before Exitapplication ?
I have added permission to receive SMS and register my service in MANIFEST
and now there is small problem because if I close my application definitely ( Exitapplication ) then when new SMS is incomning, android try start my service and CRASH, application were closed
so my question is how to prevent such situation ? Can I dynamically register my service into manifest and automaticaliy unregister just before Exitapplication ?