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 :

  1. start_sticky
  2. 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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

css - Text drops down with smaller window -