Dear Kris :
Thanks.
I use a Viewpad & Acer A500 to communicate through the bluetooth.
Mark
2011/6/15 Kristopher Micinski <[email protected]>
> Looks like you have the code right, if you took it from the sample it
> should work.
>
> Just go through with eclipse, set a breakpoint on the line that catches the
> exception, and run your code.
>
> Again, what two phones are you running?
>
> Kris
>
>
> On Wed, Jun 15, 2011 at 3:23 AM, wu mark <[email protected]>wrote:
>
>> Dear Kris :
>>
>> Sorry, I'm a newer from android. Could you tell me how to see the text
>> in the exception?
>> What do you mean about the permission? Is it enough to add BLUETOOTH &
>> BLUETOOTH_ADMIN in the AndroidMenifest.xml?
>>
>> Thanks.
>>
>> Best Regards,
>> Mark
>>
>> PS. Could you give me an example code that can run?
>>
>> 2011/6/15 Kristopher Micinski <[email protected]>
>>
>>> Debug through and see what the text in the exception is. Maybe you
>>> didn't get ther right permission, that's a glaring reason
>>>
>>> On Jun 14, 2011 11:28 PM, "wu mark" <[email protected]> wrote:
>>>
>>> Dear Kris:
>>>
>>> I found it failed on the below step. Could you find anything wrong?
>>>
>>> Thanks.
>>>
>>> // 連線等候執行緒
>>> private class ServerThread extends Thread {
>>> private final BluetoothServerSocket mmServerSocket;
>>> private final String ServiceName = "BTServer";
>>> private final UUID MY_UUID =
>>> UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
>>>
>>> public ServerThread() {
>>> BluetoothServerSocket tmp = null;
>>> try {
>>> tmp = BTAdapter.listenUsingRfcommWithServiceRecord(ServiceName,
>>> MY_UUID);
>>> } catch (IOException e) { }
>>> mmServerSocket = tmp;
>>> }
>>>
>>> 2011/6/15 Kristopher Micinski <[email protected]>
>>>
>>>> >
>>>> > The UUIDs don't matter, they just have to be the same between your
>>>> applications.
>>>> >
>>>> > If you copy...
>>>>
>>>> --
>>>>
>>>> > You received this message because you are subscribed to the Google
>>>> > Groups "Android Developers" g...
>>>>
>>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers...
>>>
>>> --
>>> 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
>>>
>>
>> --
>> 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
>>
>
> --
> 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
>
--
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