I have a program that calls a service. This service is called again from "Service_Start" with "StartServiceAt" with times exceeding eight hours. The service works perfectly.
If from the phone, press menu (hard button), I enter "Clear memory", and delete. If there are many background applications, Android puts service on the schedule, and this service is no longer visible in Settings / Application Manager / In progress, It does not kill the service, because when your time comes activates the service, the problem is that:
1) The variables declared in "Process_Globals" the reset.
2) Re-enter "Service_Create" when should enter "Service_Start", so the initialization code will execute again 3) After entering "Service_Create" enters "Service_Start".
Conclusion: The service continues and goes back into its proper time, but comes as if for the first time. If someone you do not expect that for the "Service_Create" initialized variables, do it again.
I this "problem" I have turned writing data to a file.
This I found out putting a trace to the application service and taking several days running.
Note: Sometimes, you do not need the user to clear the memory for this to happen, Android sometimes does with the same effect.
Regards
If from the phone, press menu (hard button), I enter "Clear memory", and delete. If there are many background applications, Android puts service on the schedule, and this service is no longer visible in Settings / Application Manager / In progress, It does not kill the service, because when your time comes activates the service, the problem is that:
1) The variables declared in "Process_Globals" the reset.
2) Re-enter "Service_Create" when should enter "Service_Start", so the initialization code will execute again 3) After entering "Service_Create" enters "Service_Start".
Conclusion: The service continues and goes back into its proper time, but comes as if for the first time. If someone you do not expect that for the "Service_Create" initialized variables, do it again.
I this "problem" I have turned writing data to a file.
This I found out putting a trace to the application service and taking several days running.
Note: Sometimes, you do not need the user to clear the memory for this to happen, Android sometimes does with the same effect.
Regards