I do have a background service launched by an activity:
startService(new Intent(this, tsServico.class));
The service launch a new thread and return START_STICK:
tsApp DW = new tsApp();
new Thread(DW).start();
return START_STICKY;
The tsApp is a class:
public class tsApp extends Service implements Runnable { ...
Everything works fine, until the activity is destroyed (like when removed from the recent app list). When it happens it seems that the thread is being killed. I can see at Developer's Options > Running Services, that the service is running.
How can I keep that thread running?