android.os.NetworkOnMainThreadException

  1. 0

    retrofit.RetrofitError in Android project

    Stack Overflow | 2 years ago | Tim Kruichkov
    android.os.NetworkOnMainThreadException
  2. 0

    Twitter search method using Twitter4J

    Stack Overflow | 3 years ago | DaggerJay11
    android.os.NetworkOnMainThreadException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Google cloud Messaging for beginners

    Stack Overflow | 2 years ago | hPys
    android.os.NetworkOnMainThreadException

  1. 0x60 1 times, last 2 months ago
  2. adawolfs 4 times, last 4 months ago
  3. Bassiuz 1 times, last 5 months ago
  4. jk 12 times, last 6 months ago
  5. bayukresno 2 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:1128)
    1 frame
  3. Java RT
    InetAddress.getAllByName
    1. java.net.InetAddress.lookupHostByName(InetAddress.java:385)
    2. java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
    3. java.net.InetAddress.getAllByName(InetAddress.java:214)
    3 frames
  4. Android
    HttpsURLConnectionImpl.getResponseCode
    1. libcore.net.http.HttpConnection.<init>(HttpConnection.java:70)
    2. libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
    3. libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340)
    4. libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
    5. libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
    6. libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:316)
    7. libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:469)
    8. libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:433)
    9. libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290)
    10. libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240)
    11. libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:292)
    12. libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:505)
    13. libcore.net.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:134)
    13 frames
  5. Retrofit
    RestAdapter$RestHandler.invokeRequest
    1. retrofit.client.UrlConnectionClient.readResponse(UrlConnectionClient.java:73)
    2. retrofit.client.UrlConnectionClient.execute(UrlConnectionClient.java:38)
    3. retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:326)
    3 frames