Bluetooth socket freeze phone

view full story

http://androidforums.com – Hello, I am developing an application for Android. This app should communicate with a BT device (sending some bytes). I have a problem with debugging/running this app on my device (Samsung Galaxy mini). When I create a BT socket and stop debugging, phone freeze and I have to restart it by getting out the battery. In case of running this app (from Eclipse) everything is OK, but when I try to run it again, phone freeze and app is not installed. If I try to unninstall this app manualy before second run, phone freeze again. Here is a problematic code: [HIGH] private final BluetoothDevice mm (General)