Hey Man,

My name is rahul I m also doing a Uni project in Android.
I want to communicate with mobile- mobile & Mobile -PC/Laptop.
Can you share your project information so that we can help each other
I am able to connect between two mobiles but I am stuck u with
connecting with PC.
Do u know how we do it....
Please if u can help me it will be great help.
Or if u r busy can u please share ur some code with me related to
reflection .
It will be big favor..
Cheers....

Rahul

On Jul 18, 9:14 am, Per <[email protected]> wrote:
> Hi all,
>
> Using this list as a valuable source of info, I've been able to
> succesfully create an RFCOMM connection and transfer data over it,
> using my HTC Desire.
> The primary obstacle was the failure of
> BluetoothDevice.createRfcommSocketToServiceRecord(), circumvented by
> reflection (createRfcommSocket). Search this group or
> stackoverflow.com for example code.
>
> So far, so good.
> But - after closing down the connection following what I think is
> correct procedure (close streams, then close socket, each encapsulated
> in try/catch), the next call to connect() blocks until I call close()
> from another thread.
>
> In this scenario, Logcat always contains:
>
> E/BTLD    (23644): RFCOMM_CreateConnection - already opened state:2,
> RFC state:4, MCB state:5
>
> - despite the fact that I (think I) have closed everything properly.
>
> The only cure I've been able to find is cycling BT off and on, which
> is a bit much, I think... Doable from code, but definitely not a nice
> thing to do.
>
> Am I missing a point somewhere, or is this a known bug in the BT stack
> (possibly HTC specific) ?
>
> BR
> Per

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to