android.os.NetworkOnMainThreadException

Stack Overflow | Dura | 4 months ago
  1. 0

    read data from database with clause in json

    Stack Overflow | 4 months ago | Dura
    android.os.NetworkOnMainThreadException
  2. 0

    POST request from Android to Restful API

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

    Automated exception search integrated into your IDE

  1. MyInnos 4 times, last 8 months ago
  2. 0x60 1 times, last 2 months ago
  3. adawolfs 4 times, last 4 months ago
  4. Bassiuz 1 times, last 5 months ago
  5. jk 12 times, last 6 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:1147)
    1 frame
  3. Java RT
    InetAddress.getAllByName
    1. java.net.InetAddress.lookupHostByName(InetAddress.java:418)
    2. java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)
    3. java.net.InetAddress.getAllByName(InetAddress.java:215)
    3 frames
  4. Apache HttpClient
    AbstractHttpClient.execute
    1. org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:142)
    2. org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)
    3. org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)
    4. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:365)
    5. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)
    6. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492)
    7. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:470)
    7 frames
  5. com.example.eagle
    ResultPage$result$1.run
    1. com.example.eagle.start1.JSONParser.makeHttpRequest(JSONParser.java:118)
    2. com.example.eagle.start1.ResultPage$result$1.run(ResultPage.java:135)
    2 frames
  6. Android Platform
    ActivityThread.main
    1. android.os.Handler.handleCallback(Handler.java:739)
    2. android.os.Handler.dispatchMessage(Handler.java:95)
    3. android.os.Looper.loop(Looper.java:135)
    4. android.app.ActivityThread.main(ActivityThread.java:5254)
    4 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames