Shutdown BlueCove stack programmatically
<p>Is there any way to shutdown the BlueCove stack, in my application user can able to start, stop and restart the bluetooth server whenever they wish, for that I can able to start the server, listen for connection, accept message from the client. But when I try to stop and restart the BlueCove, I'm gettting BluetoothStateException, instead I've to restart the application itself.</p>

<p>For shutting down I used,</p>

<pre><code>BlueCoveImpl.shutdown();
</code></pre>

<p>and another thing</p>

<pre><code>BlueCoveImpl blueCoveImpl = BlueCoveImpl.instance();
blueCoveImpl.setBluetoothStack(null);
</code></pre>

<p>but both not worked for me.</p>

<p>Any Ideas to do this.</p>

<p>EDIT: When I close the whole application it displays </p>

<blockquote>
  <p>BlueCove stack shutdown completed</p>
</blockquote>

<p>in the Console.</p>

<p>Thanks.</p>
