I have nearly completed my application but I am still facing an issue.
I have a service which always runs in background, searching much in forum I used method startserviceat().
But I am not satisfied.
I tried using method startforeground with a notification icon but it was always cleared out whenever I cleaned using estaskmanager. I compared my service with whatsapp, it was never terminated except when I killed it manually...and there service uptime was much greater than mine even I started my service with whatsapp.
So can anyone provide a better solution I would really appreciate.
I just want to make a service always alive just like whatsapp messaging service.
I have a service which always runs in background, searching much in forum I used method startserviceat().
But I am not satisfied.
I tried using method startforeground with a notification icon but it was always cleared out whenever I cleaned using estaskmanager. I compared my service with whatsapp, it was never terminated except when I killed it manually...and there service uptime was much greater than mine even I started my service with whatsapp.
So can anyone provide a better solution I would really appreciate.
I just want to make a service always alive just like whatsapp messaging service.