Nizze Active Member Licensed User Longtime User Jun 13, 2016 #1 The log says : java.io.IOException: Function not implemented at android.bluetooth.BluetoothSocket.initSocketNative(Native Method) at android.bluetooth.BluetoothSocket.<init>(BluetoothSocket.java:188) at android.bluetooth.BluetoothDevice.createRfcommSocketToServiceRecord(BluetoothDevice.java:1093) at anywheresoftware.b4a.objects.Serial.Connect2(Serial.java:147) at anywheresoftware.b4a.objects.Serial.Connect(Serial.java:117) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:747) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134) at anywheresoftware.b4a.BA.raiseEvent(BA.java:153) at anywheresoftware.b4a.objects.Serial$BluetoothAdmin$1$1.run(Serial.java:341) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5074) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method) But why cant i connect ?? The error comes at this line serial1.Connect(connectedDevice.Mac)
The log says : java.io.IOException: Function not implemented at android.bluetooth.BluetoothSocket.initSocketNative(Native Method) at android.bluetooth.BluetoothSocket.<init>(BluetoothSocket.java:188) at android.bluetooth.BluetoothDevice.createRfcommSocketToServiceRecord(BluetoothDevice.java:1093) at anywheresoftware.b4a.objects.Serial.Connect2(Serial.java:147) at anywheresoftware.b4a.objects.Serial.Connect(Serial.java:117) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:747) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134) at anywheresoftware.b4a.BA.raiseEvent(BA.java:153) at anywheresoftware.b4a.objects.Serial$BluetoothAdmin$1$1.run(Serial.java:341) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5074) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method) But why cant i connect ?? The error comes at this line serial1.Connect(connectedDevice.Mac)
DonManfred Expert Licensed User Longtime User Jun 13, 2016 #2 Starting from Android 6 (i think) it is impossible to get the mac-adress anymore. The feature has been removed from android. This may cause your error. Upvote 0
Starting from Android 6 (i think) it is impossible to get the mac-adress anymore. The feature has been removed from android. This may cause your error.
Nizze Active Member Licensed User Longtime User Jun 13, 2016 #3 DonManfred said: Starting from Android 6 (i think) it is impossible to get the mac-adress anymore. The feature has been removed from android. This may cause your error. Click to expand... Okey I'l try another way Thanks Upvote 0
DonManfred said: Starting from Android 6 (i think) it is impossible to get the mac-adress anymore. The feature has been removed from android. This may cause your error. Click to expand... Okey I'l try another way Thanks
Nizze Active Member Licensed User Longtime User Jun 13, 2016 #4 Okey Now i got this error SerialPort.Connect(PairedDevices.Get(l.Get(res))) Error occurred on line: 72 (Main) java.io.IOException: Function not implemented at android.bluetooth.BluetoothSocket.initSocketNative(Native Method) at android.bluetooth.BluetoothSocket.<init>(BluetoothSocket.java:188) at android.bluetooth.BluetoothDevice.createRfcommSocketToServiceRecord(BluetoothDevice.java:1093) at anywheresoftware.b4a.objects.Serial.Connect2(Serial.java:147) at anywheresoftware.b4a.objects.Serial.Connect(Serial.java:117) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:747) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134) at anywheresoftware.b4a.BA.raiseEvent(BA.java:153) at b4a.example.main$B4AMenuItemsClickListener.onMenuItemClick(main.java:191) at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:144) at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:874) at com.android.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:156) at android.widget.AdapterView.performItemClick(AdapterView.java:298) at android.widget.AbsListView.performItemClick(AbsListView.java:1100) at android.widget.AbsListView$PerformClick.run(AbsListView.java:2749) at android.widget.AbsListView$1.run(AbsListView.java:3423) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5074) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method) ** Activity (main) Pause, UserClosed = true ** ** Service (starter) Destroy ** ** Service (special) Destroy ** Upvote 0
Okey Now i got this error SerialPort.Connect(PairedDevices.Get(l.Get(res))) Error occurred on line: 72 (Main) java.io.IOException: Function not implemented at android.bluetooth.BluetoothSocket.initSocketNative(Native Method) at android.bluetooth.BluetoothSocket.<init>(BluetoothSocket.java:188) at android.bluetooth.BluetoothDevice.createRfcommSocketToServiceRecord(BluetoothDevice.java:1093) at anywheresoftware.b4a.objects.Serial.Connect2(Serial.java:147) at anywheresoftware.b4a.objects.Serial.Connect(Serial.java:117) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:747) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134) at anywheresoftware.b4a.BA.raiseEvent(BA.java:153) at b4a.example.main$B4AMenuItemsClickListener.onMenuItemClick(main.java:191) at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:144) at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:874) at com.android.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:156) at android.widget.AdapterView.performItemClick(AdapterView.java:298) at android.widget.AbsListView.performItemClick(AbsListView.java:1100) at android.widget.AbsListView$PerformClick.run(AbsListView.java:2749) at android.widget.AbsListView$1.run(AbsListView.java:3423) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5074) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method) ** Activity (main) Pause, UserClosed = true ** ** Service (starter) Destroy ** ** Service (special) Destroy **
DonManfred Expert Licensed User Longtime User Jun 13, 2016 #5 #1 Nizze said: java.io.IOException: Function not implemented Click to expand... #4 Nizze said: java.io.IOException: Function not implemented Click to expand... Same error. Which android version are you using? On Android 6 you´ll NOT get a Mac anymore like i wrote earlier... See here https://developer.android.com/about...android-6.0-changes.html#behavior-hardware-id Upvote 0
#1 Nizze said: java.io.IOException: Function not implemented Click to expand... #4 Nizze said: java.io.IOException: Function not implemented Click to expand... Same error. Which android version are you using? On Android 6 you´ll NOT get a Mac anymore like i wrote earlier... See here https://developer.android.com/about...android-6.0-changes.html#behavior-hardware-id
Nizze Active Member Licensed User Longtime User Jun 13, 2016 #6 I have android 4.2.2 On my phone that i am working with Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 14, 2016 #7 Seems like you are using a device without Bluetooth. Upvote 0