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