I want to create an application that runs on Android and uses Raw Sockets. I see there isn't any raw socket support in the java.net.* or the android.net.* libraries. Are raw sockets possible on Android?
相关问题
- How can I create this custom Bottom Navigation on
- Multiple sockets for clients to connect to
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Correct, raw sockets are not supported in any Java or Android libraries, in part because (I quote from here):
There are 3rd party libraries like RockSaw or JSocket, however these require compiling C or C++, so you are out of luck there.
Also, I believe you need root access to use raw sockets.
So, with all that, I would say technically it's possible, but not practical at this time.
Why not use Android interprocess comunication, like :
AIDL, Intent, Broadcast etc
See http://developer.android.com/guide/topics/fundamentals/services.html for example. They use internally raw sockets
As far as I know it's not possible on Android. Not in java nor c/c++ due to security reasons(I guess), the only possible solution would be through some hack with root access. I've been searching for a way as well but never found anything.