On Wed, Nov 11, 2009 at 3:13 PM, Sean Liao <[email protected]> wrote:

> Do you mean that if the remote device doesn't require a pin, the android
> api will not be able to establish a connection to such remote devices?
>

BluetoothSocket enforces pairing. You'll need to pair before the connection
can complete.


>
> Do I have an option to inject the paring key pragmatically if my appl
> already know the pin code of the remote device?  Or, if the remote device
> doesn't require pin code, new new bluetooth api will just connect without
> user intervention?
>

You'll need to pair before the connection can complete. You cannot inject a
pin code.


>
> The idea is that we want to have a background service running without user
> intervention.
>

Well the user only needs to pair once. If your remote device supports
Bluetooth 2.1 then pairing is really easy - the user just hits 'Yes'.


>
> Please advise.
> Sean
>
> On Wed, Nov 11, 2009 at 10:02 AM, Nick Pelly <[email protected]> wrote:
>
>>
>>
>> On Sun, Nov 8, 2009 at 12:34 PM, Sean Liao <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> Before 2.0 released, there were some questions/discussions related to the
>>> Bluetooth security, i.e whether paring is required to establish connection.
>>>
>>> Anyone know the answer or try it out already:  Is paring requirement
>>> enforced in the new bluetooth api in SDK 2?  Any public info available
>>> related to this topic?
>>>
>>
>> Yes pairing is required. But the OS will handle this in the background.
>>
>> For example, if you use BluetoothSocket and BluetoothServerSocket and try
>> to make an unpaired connection, the OS will provide notifications to the
>> user that pairing is required. Once they are paired the connection will
>> complete. You application does not need to handle pairing.
>>
>>
>>>
>>> Thanks in advance.
>>> Sean
>>>
>>>  --
>>> 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]<android-developers%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>  --
>> 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]<android-developers%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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