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.

  • Retrofit 2 error: NetworkOnMainThreadException
    via Stack Overflow by G-J
    ,
  • Retrieve Facebook liked pages info
    via Stack Overflow by Jolan Goburdhun
    ,
    • android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1273) at com.android.org.conscrypt.OpenSSLSocketImpl.shutdownAndFreeSslNative(OpenSSLSocketImpl.java:1131) at com.android.org.conscrypt.OpenSSLSocketImpl.close(OpenSSLSocketImpl.java:1126) at android.gov.nist.javax.sip.stack.TLSMessageChannel.close(TLSMessageChannel.java:180) at android.gov.nist.javax.sip.stack.ConnectionOrientedMessageChannel.close(ConnectionOrientedMessageChannel.java:127) at android.gov.nist.javax.sip.stack.TLSMessageProcessor.stop(TLSMessageProcessor.java:225) at android.gov.nist.javax.sip.SipProviderImpl.removeListeningPoints(SipProviderImpl.java:1082) at android.gov.nist.javax.sip.SipStackImpl.deleteSipProvider(SipStackImpl.java:1691) at org.mobicents.restcomm.android.sipua.impl.SipManager.unbind(SipManager.java:282) at org.mobicents.restcomm.android.sipua.impl.SipManager.shutdown(SipManager.java:265) at org.mobicents.restcomm.android.sipua.impl.DeviceImpl.Shutdown(DeviceImpl.java:143) at org.mobicents.restcomm.android.client.sdk.RCDevice$1.run(RCDevice.java:278) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5466) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

    Users with the same issue

    brunosatriani
    1 times, last one,
    justCodeit
    34 times, last one,
    Adrien
    4 times, last one,
    dealloc
    2 times, last one,
    Alexandru Popa
    3 times, last one,
    38 more bugmates