android.os.NetworkOnMainThreadException

Stack Overflow | Rehan Yousaf | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Adding Login Form

    GitHub | 3 years ago | QwertyPong
    android.os.NetworkOnMainThreadException
  3. 0

    Android get data from MySql table

    Stack Overflow | 3 years ago | roshanpeter
    android.os.NetworkOnMainThreadException
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. Apache HttpClient
    AbstractHttpClient.execute
    1. org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:137)
    2. org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
    3. org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
    4. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:365)
    5. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:587)
    6. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:511)
    7. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:489)
    7 frames
  5. com.heycabs.heycabs
    JSONParser.makeHttpRequest
    1. com.heycabs.heycabs.JSONParser.makeHttpRequest(JSONParser.java:65)
    1 frame