I have generic network nonblocking socket library on Java, on default JVM all works fine, but on Android platform next code blocks :
DatagramChannel channel;
. . .
channel.bind(...)
channel.configureBlocking(false);
. . .
channel.register(udpSelector, SelectionKey.OP_READ | SelectionKey.OP_WRITE);
Blocks on register(), execution can be blocked for 20-40 sec or forever, same only with OP_READ or only with OP_WRITE.
Any hint how to fix ?
Edit : same problem on Android 2.3 and Android 4.0.4