Re: [android-developers] Bluetooth socket connection issue

2011-02-09 Thread Laurent Lugon
Hi, I've try to add delay before, after, before and after but the result still unchanger... It's not a headset it's a device used to protect your valuables, it checks the bluetooth connection and when it to far from the mobile phone (= loose the bluetooth connection) an alarm is started. Any

Re: [android-developers] Bluetooth socket connection issue

2011-02-08 Thread Ajith Kamath
Hi Checked the logs. Everything seems to be fine. I'm not sure what the prob is. Try adding some delay before bluetooth socket connect takes place. this might be needed if you are connecting to some headsets/handsfree. If Still it doesn solve the problem.. Add logs upto jni level and send the

[android-developers] Bluetooth socket connection issue

2011-02-07 Thread Laurent Lugon
Hi all, I use a hardware bluetooth device and I need to connect it to my mobile phone. I've follow the instruction on developer.android.com to set up a bluetooth connection but I still have a problem. When I'm connecting to the Bluetooth Socket with bluetoothSocket.connect() I don't catch any

Re: [android-developers] Bluetooth socket connection issue

2011-02-07 Thread Ajith Kamath
please paste the logs. And what bluetooth h/w are you trying to connect to your mobile device Regards, Ajith On Mon, Feb 7, 2011 at 4:21 PM, Laurent Lugon laurent.lu...@secu4.comwrote: Hi all, I use a hardware bluetooth device and I need to connect it to my mobile phone. I've follow the

Re: [android-developers] Bluetooth socket connection issue

2011-02-07 Thread Ajith Kamath
Hi From the attached logs, its unclear what is the error. Discovery seems to be stopped in an odd manner, but that should not generate any problem You need to rig the code , add more logs. Since the connect thread was called, add more logs in Connect thread It seems that *BEGIN mConnectedThread*

Re: [android-developers] Bluetooth socket connection issue

2011-02-07 Thread Ajith Kamath
Hi Sorry I rechecked logs again. *BEGIN mConnectedThread *seems to be called. my bad. Still please add logs before and after connect and send Regards, Ajith On Tue, Feb 8, 2011 at 10:39 AM, Ajith Kamath sjce.aj...@gmail.com wrote: Hi From the attached logs, its unclear what is the error.