android.os.NetworkOnMainThreadException

GitHub | stratrik | 3 months ago
  1. 0

    GitHub comment 9#247465555

    GitHub | 3 months ago | stratrik
    android.os.NetworkOnMainThreadException
  2. 0

    Cant run Androrat

    GitHub | 3 months ago | ma3axaka007
    java.lang.RuntimeException: Unable to start service my.app.client.Client@34e18bec with Intent { act=my.app.client.LauncherActivity cmp=my.app.client/.Client (has extras) }: android.os.NetworkOnMainThreadException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Java - Android - Main thread exception uploading by FTP

    Stack Overflow | 8 months ago | Gosdi
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {com.ignistudios.photosharing/com.ignistudios.photosharing.MainActivity}: android.os.NetworkOnMainThreadException
  5. 0

    Android Studio Client-Server message struggle

    Stack Overflow | 2 months ago | Lambros Hitiris
    android.os.NetworkOnMainThreadException

  1. dealloc 2 times, last 2 weeks ago
  2. Alexandru Popa 3 times, last 3 weeks ago
  3. filpgame 1 times, last 4 weeks ago
  4. jk 5 times, last 7 months ago
  5. zildjiandm 2 times, last 8 months ago
12 more registered users
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.os.NetworkOnMainThreadException

    No message provided

    at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork()
  2. Android Platform
    StrictMode$AndroidBlockGuardPolicy.onNetwork
    1. android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1147)
    1 frame
  3. Android
    IoBridge.connect
    1. libcore.io.BlockGuardOs.connect(BlockGuardOs.java:110)
    2. libcore.io.IoBridge.connectErrno(IoBridge.java:137)
    3. libcore.io.IoBridge.connect(IoBridge.java:122)
    3 frames
  4. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:163)
    3. java.net.Socket.startupSocket(Socket.java:590)
    4. java.net.Socket.tryAllAddresses(Socket.java:128)
    5. java.net.Socket.<init>(Socket.java:178)
    6. java.net.Socket.<init>(Socket.java:150)
    6 frames
  5. out
    Connection.connect
    1. out.Connection.connect(Connection.java:52)
    1 frame
  6. my.app.client
    Client.onStartCommand
    1. my.app.client.Client.onStartCommand(Client.java:96)
    1 frame
  7. Android Platform
    ActivityThread.main
    1. android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2915)
    2. android.app.ActivityThread.access$2100(ActivityThread.java:154)
    3. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1415)
    4. android.os.Handler.dispatchMessage(Handler.java:102)
    5. android.os.Looper.loop(Looper.java:135)
    6. android.app.ActivityThread.main(ActivityThread.java:5290)
    6 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
    2 frames