Device gets stuck after terminating bluetooth app
<p>I'm trying to implement an app that reads data from a bluetooth device (a GlobalSat BT-338 GPS receiver). I have followed the instructions from the <a href="http://developer.android.com/guide/topics/connectivity/bluetooth.html" rel="nofollow">guide</a>.</p>

<p>The greatest problem is that after connecting and then disconnecting from the bluetooth device, if I terminate the app in whatever way, my device (LG E720, Android 2.2) gets completely stuck. The only way to unblock it is removing and replacing the battery!</p>

<p>These are some different ways I happen to use to terminate the app (the first one I can not avoid):</p>

<ul>
<li><p>From eclipse, run a new version of the app; this causes an automatic termination of the previous version running on my device: device stuck;</p></li>
<li><p>From Eclipse DDMS screen, perform a "Stop process" on my app: device stuck;</p></li>
<li><p>From the device itself: Settings -> Applications -> Manage applications -> BluetoothTest -> Terminate: device stuck </p></li>
</ul>

<p>Can anyone help?</p>
