Can not close the service when close the background
<p>I write this code in the onDestroy() method. </p>

<pre><code>@Override
public void onDestroy()
{
MessageService.this.stopSelf();
messageThread.isRunning = false;
System.exit(0);
super.onDestroy();
}
</code></pre>

<p>And close the service in other Activity.</p>

<pre><code>stopService(new Intent(MainOptionActivity.this,MessageService.class));
</code></pre>

<p>I tried many code, it can not close the service when close the background. Could anyone give me some advice? Thanks.</p>
