android.os.NetworkOnMainThreadException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • ZeroMQ On Android Java ( Android Studio )
    via Stack Overflow by Destroy
    ,
  • How to make an udp connection in android
    via Stack Overflow by Fatih POLAT
    ,
  • networking issues on Honeycomb and higher
    via Stack Overflow by user802479
    ,
  • Android working on api 10 but not 16
    via Stack Overflow by Shay
    ,
  • Why does my UDP message from Android not work?
    via Stack Overflow by theva
    ,
  • UDP packet is not sent
    via Stack Overflow by pedro.olimpio
    ,
    • android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1145) at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:168) at libcore.io.IoBridge.sendto(IoBridge.java:490) at java.nio.SocketChannelImpl.writeImpl(SocketChannelImpl.java:391) at java.nio.SocketChannelImpl.write(SocketChannelImpl.java:349) at java.nio.PipeImpl$PipeSinkChannel.write(PipeImpl.java:114) at zmq.Signaler.send(Signaler.java:121) at zmq.Mailbox.send(Mailbox.java:85) at zmq.Ctx.sendCommand(Ctx.java:388) at zmq.ZObject.sendCommand(ZObject.java:362) at zmq.ZObject.sendPlug(ZObject.java:171) at zmq.ZObject.sendPlug(ZObject.java:161) at zmq.Own.launchChild(Own.java:126) at zmq.SocketBase.addEndpoint(SocketBase.java:550) at zmq.SocketBase.connect(SocketBase.java:542) at org.zeromq.ZMQ$Socket.connect(ZMQ.java:1246) at mia.face.id.zmqtestest.MainActivity$1.onClick(MainActivity.java:34) at android.view.View.performClick(View.java:4438) at android.view.View$PerformClick.run(View.java:18422) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:813) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629) at dalvik.system.NativeStart.main(Native Method)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Hiren AmaliyarHiren Amaliyar
    5 times, last one,
    Indri YunitaIndri Yunita
    6 times, last one,
    justCodeitjustCodeit
    34 times, last one,
    38 more bugmates