onDestroy method not exist in receiver. What is alternative?
<p>I am using a <code>Service</code> and I dynamically register a receiver like</p>

<pre><code>private BroadcastReceiver yourCallReceiver;
 yourCallReceiver = new CallReceiver();

        // Registers the receiver so that your service will listen for broadcasts
        registerReceiver(yourCallReceiver, theCallFilter);
</code></pre>

<p>and unregister like</p>

<pre><code>@Override
    public void onDestroy() {
        super.onDestroy();

        // Do not forget to unregister the receiver!!!
        unregisterReceiver(yourCallReceiver);
    }
</code></pre>

<p>but i am having problems that i need to shutdown some work whene i unregister receiver, but receiver does not have <code>onDestroy</code> method. How can i do this? how can i stop some third party work when unregister receiver in service? is this even possible?</p>
