How to use the new Socket.asOkioSocket() with android BluetoothSocket ? #1675
Answered
by
JakeWharton
CoreFloDev
asked this question in
Q&A
-
|
Hi, Thanks for the amazing work, I was wondering how to use the new For some reason, it doesn't inherit from java.net.socket so I don't see an obvious way to use that new socket api. Thanks for your time, |
Beta Was this translation helpful? Give feedback.
Answered by
JakeWharton
Aug 1, 2025
Replies: 1 comment
-
|
You cannot, as you indicate, since it's not a subtype. You'll have to create your own adapter. As you can see from the one for |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
CoreFloDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You cannot, as you indicate, since it's not a subtype. You'll have to create your own adapter. As you can see from the one for
java.net.Socketin this library, though, it's pretty trivial to do so yourself.