android.os.NetworkOnMainThreadException

Stack Overflow | MADJAR | 5 months ago
  1. 0

    Issues with getting Image through URL

    Stack Overflow | 5 months ago | MADJAR
    android.os.NetworkOnMainThreadException
  2. 0

    URLConnection: unable to make get request

    Stack Overflow | 1 year ago | Kuldeep
    android.os.NetworkOnMainThreadException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android SOAP wsdl

    Stack Overflow | 3 years ago | user2742861
    android.os.NetworkOnMainThreadException

  1. bluebunnty 2 times, last 7 days ago
  2. dealloc 2 times, last 2 weeks ago
  3. Alexandru Popa 3 times, last 3 weeks ago
  4. filpgame 1 times, last 4 weeks ago
  5. jk 5 times, last 7 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. 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.connect
    1. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:452)
    3. java.net.Socket.connect(Socket.java:884)
    3 frames
  5. Android
    HttpEngine.sendRequest
    1. com.android.okhttp.internal.Platform.connectSocket(Platform.java:117)
    2. com.android.okhttp.internal.http.SocketConnector.connectRawSocket(SocketConnector.java:160)
    3. com.android.okhttp.internal.http.SocketConnector.connectCleartext(SocketConnector.java:67)
    4. com.android.okhttp.Connection.connect(Connection.java:152)
    5. com.android.okhttp.Connection.connectAndSetOwner(Connection.java:185)
    6. com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128)
    7. com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:341)
    8. com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:330)
    9. com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
    9 frames
  6. 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
  7. com.example.neil
    MainActivity$1.onClick
    1. com.example.neil.access_control.MainActivity.getBitmapFromURL(MainActivity.java:71)
    2. com.example.neil.access_control.MainActivity$1.onClick(MainActivity.java:54)
    2 frames
  8. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:5198)
    2. android.view.View$PerformClick.run(View.java:21147)
    3. android.os.Handler.handleCallback(Handler.java:739)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:148)
    6. android.app.ActivityThread.main(ActivityThread.java:5417)
    6 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames