Create Android Service which no "Task Killer" application can kill -
i want create service no "advance task killer" can kill, or if kills restart again.
i tried below scenarios didn't work :
- start_sticky
- registering receiver sms (unfortunately won't work on tablets)
can suggest code ?
you can try using ondestroy() method of android services, restart service once killed.
@override public void ondestroy() { intent serviceintent = new intent(context, myservice.class); context.startservice( serviceintent ); }
Comments
Post a Comment