How to stop thread from BroadcastReceiver in onReceive()
<p>The main idea is how to stop running thread from onReceive(),for example if connection is lost stop thread which is making connections to internet?
I have a class that extends BroadcastReceiver and i want to have access on running thread in another class to stop it.</p>
