Android bindService or/and startService 
<p>I want to create Service using <code>bindService</code>  method.
But when I close one Activity my Service is destroyed, I don't want that.</p>

<p>I try to put service foreground using  <code>startForeground(NOTIFICATION_ID, notification);</code> service onCreate , but service still destroy.</p>

<p>Now I try with call two methods for starting Service at same time :</p>

<pre><code>    Intent bindIntent= new Intent(this, ServiceC.class);
    startService(bindIntent);
    bindService(bindIntent, onService, BIND_AUTO_CREATE);
</code></pre>

<p>With calling this two methods Service not destroyed. My app work fine at this method.</p>

<p>Can someone explain to me whether this is a good way or if is not  can you please give me idea why <code>startForeground(NOTIFICATION_ID, notification);</code> not work ?</p>

<p>Who is the best way to use bindService  but in same time I don't want to service self destroy.</p>

<p>Thanks!!!</p>
