android.os.NetworkOnMainThreadException

Stack Overflow | Hamza Sonay | 3 months ago
  1. 0

    I would like to draw the bitmap turn a url?

    Stack Overflow | 3 months ago | Hamza Sonay
    android.os.NetworkOnMainThreadException
  2. 0

    Exception dispatching input event with jsoup get url

    Stack Overflow | 9 months ago | JimmyHo
    android.os.NetworkOnMainThreadException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    I Got java.lang.reflect.Method.invoke Error when i run the program

    Stack Overflow | 2 months ago | Mazen Yosry
    java.lang.IllegalStateException: Could not execute method for android:onClick

  1. bayukresno 2 times, last 7 months ago
  2. dmitry 1 times, last 8 months ago
  3. 0x60 1 times, last 2 months ago
  4. adawolfs 4 times, last 4 months ago
  5. Bassiuz 1 times, last 5 months ago
13 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:1273)
    1 frame
  3. Java RT
    InetAddress.getAllByName
    1. java.net.InetAddress.lookupHostByName(InetAddress.java:431)
    2. java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)
    3. java.net.InetAddress.getAllByName(InetAddress.java:215)
    3 frames
  4. Android
    HttpEngine.sendRequest
    1. com.android.okhttp.internal.Network$1.resolveInetAddresses(Network.java:29)
    2. com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:188)
    3. com.android.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:157)
    4. com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:100)
    5. com.android.okhttp.internal.http.HttpEngine.createNextConnection(HttpEngine.java:357)
    6. com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:340)
    7. com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:330)
    8. com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
    8 frames
  5. com.android.okhttp
    HttpURLConnectionImpl.connect
    1. com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:433)
    2. com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:114)
    2 frames
  6. com.example.dogushur
    MainActivity$Ciz.onDraw
    1. com.example.dogushur.canvas.MainActivity.getBitmapFromURL(MainActivity.java:106)
    2. com.example.dogushur.canvas.MainActivity$Ciz.onDraw(MainActivity.java:60)
    2 frames
  7. Android Platform
    View.draw
    1. android.view.View.draw(View.java:16178)
    2. android.view.View.updateDisplayListIfDirty(View.java:15174)
    3. android.view.View.draw(View.java:15948)
    4. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
    5. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
    6. android.view.View.updateDisplayListIfDirty(View.java:15169)
    7. android.view.View.draw(View.java:15948)
    8. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
    9. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
    10. android.view.View.updateDisplayListIfDirty(View.java:15169)
    11. android.view.View.draw(View.java:15948)
    12. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
    13. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
    14. android.view.View.updateDisplayListIfDirty(View.java:15169)
    15. android.view.View.draw(View.java:15948)
    16. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
    17. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
    18. android.view.View.updateDisplayListIfDirty(View.java:15169)
    19. android.view.View.draw(View.java:15948)
    20. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
    21. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
    22. android.view.View.updateDisplayListIfDirty(View.java:15169)
    23. android.view.View.draw(View.java:15948)
    24. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
    25. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
    26. android.view.View.updateDisplayListIfDirty(View.java:15169)
    27. android.view.View.draw(View.java:15948)
    28. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
    29. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
    30. android.view.View.draw(View.java:16181)
    30 frames
  8. Android
    PhoneWindow$DecorView.draw
    1. com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2690)
    1 frame
  9. Android Platform
    Choreographer.doFrame
    1. android.view.View.updateDisplayListIfDirty(View.java:15174)
    2. android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281)
    3. android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287)
    4. android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322)
    5. android.view.ViewRootImpl.draw(ViewRootImpl.java:2615)
    6. android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2434)
    7. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2067)
    8. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
    9. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
    10. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    11. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    12. android.view.Choreographer.doFrame(Choreographer.java:606)
    12 frames