hi,
I read the life cycle tutorial for service and activity but I want to clarify something: Is this correct ?
1. when an app get terminated (from task manager for example)
service module get terminated as well - right ?
1.1 in the above case service_distroy and activity_pause will not be called- no way to save state in that scenario right ?
2. if service is called from the OS (registered for an intent) ServiceCreate will be called even if the service was dead before
now to my problem
My app / service is putting a notification on the notification bar, if user kill the app or the phone get into 100% CPU and start to kill processes I have no way to cancel that notification right ?
is there a way to know if a notification exist already, and get the data that presented in it ? (from the service_create Sub) ?
sorry for so many questions in one post:sign0013:
I read the life cycle tutorial for service and activity but I want to clarify something: Is this correct ?
1. when an app get terminated (from task manager for example)
service module get terminated as well - right ?
1.1 in the above case service_distroy and activity_pause will not be called- no way to save state in that scenario right ?
2. if service is called from the OS (registered for an intent) ServiceCreate will be called even if the service was dead before
now to my problem
My app / service is putting a notification on the notification bar, if user kill the app or the phone get into 100% CPU and start to kill processes I have no way to cancel that notification right ?
is there a way to know if a notification exist already, and get the data that presented in it ? (from the service_create Sub) ?
sorry for so many questions in one post:sign0013: