On May 13, 9:19 am, Nick Pelly <npe...@google.com> wrote:
> Just a quick heads up. I'm almost complete on reworking RfcommSocket.java to
> improve its interface, fix a number of bugs, and eventually make it a public
> API. I will soon post on android-platform once its ready for more eyes.

That is very good news.

I am trying to work with the current version of RfcommSocket but it
fails when calling create() with "Operation not permitted". I started
the adb shell and started the application as root but I get the same
error. Any idea what can I do about this?

E/bluetooth_RfcommSocket.cpp( 1094): createNative: Could not create
RFCOMM socket: Operation not permitted
W/System.err( 1094): java.io.IOException: socket not created
W/System.err( 1094):    at android.bluetooth.RfcommSocket.create
(RfcommSocket.java:168)
W/System.err( 1094):    at ro.clawoo.rfcommtest.RfcommTest.onCreate
(RfcommTest.java:17)
W/System.err( 1094):    at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
W/System.err( 1094):    at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2231)
W/System.err( 1094):    at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
W/System.err( 1094):    at android.app.ActivityThread.access$1800
(ActivityThread.java:112)
W/System.err( 1094):    at android.app.ActivityThread$H.handleMessage
(ActivityThread.java:1692)
W/System.err( 1094):    at android.os.Handler.dispatchMessage
(Handler.java:99)
W/System.err( 1094):    at android.os.Looper.loop(Looper.java:123)
W/System.err( 1094):    at android.app.ActivityThread.main
(ActivityThread.java:3948)
W/System.err( 1094):    at java.lang.reflect.Method.invokeNative(Native
Method)
W/System.err( 1094):    at java.lang.reflect.Method.invoke(Method.java:
521)
W/System.err( 1094):    at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
W/System.err( 1094):    at com.android.internal.os.ZygoteInit.main
(ZygoteInit.java:540)
W/System.err( 1094):    at dalvik.system.NativeStart.main(Native Method)

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

Reply via email to