A service is called on the onCreate in my Main Activity. The service extends from Service class (not IntentService) - in that service, a thread is called, which has an infinite loop - if the thread throws any Exception, it closes the service, and recalls the service (Handled by a try catch block).
Eventually, for any reason, the service is closed by android.
Please answer the following questions:
A) Does my thread continue to run?
.....If so, if a Exception is thrown at any time in the future, will it recall the service?
....If not, will an Exception be thrown to cause the service to start again?
B) Will android just turn of my thread when it turns off my service?
I'm just trying to understand what happens to my application when Android decides to clear my service.