I have a problem:
i have an activity. It call a thread that access a sqlite db to process many data ( it takes about 5 sec ) ..
if during the thread is runnig i press the back or the home button the application crash.
How can i stop/destroy the thread? i think i have to do this in onPause() method.