android.os.NetworkOnMainThreadException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Android currency converter application
    via Stack Overflow by user2827137
    ,
  • Adding Login Form
    via GitHub by QwertyPong
    ,
  • Android get data from MySql table
    via Stack Overflow by roshanpeter
    ,
  • makeHttpRequest crashes
    via Stack Overflow by dafocus
    ,
  • JSONParser class has crashed
    via Stack Overflow by nikki
    ,
    • android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1128) at java.net.InetAddress.lookupHostByName(InetAddress.java:385) at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236) at java.net.InetAddress.getAllByName(InetAddress.java:214) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:137) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:365) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:587) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:511) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:489) at com.heycabs.heycabs.JSONParser.makeHttpRequest(JSONParser.java:65)

    Users with the same issue

    justCodeit
    34 times, last one,
    MyInnos
    4 times, last one,
    Hiren Amaliyar
    5 times, last one,
    filpgame
    1 times, last one,
    0x60
    1 times, last one,
    38 more bugmates