java.lang.RuntimeException: Unable to start activity ComponentInfo{org.vaya_group.charactertest/org.vaya_group.charactertest.result}: android.os.NetworkOnMainThreadException

Stack Overflow | vaya-group | 3 months ago
  1. 0

    Sending data by HTTP GET to a PHP server

    Stack Overflow | 3 months ago | vaya-group
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.vaya_group.charactertest/org.vaya_group.charactertest.result}: android.os.NetworkOnMainThreadException
  2. 0

    Android Login Http client failing?

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

    Automated exception search integrated into your IDE

  4. 0

    Adding Login Form

    GitHub | 2 years ago | QwertyPong
    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:1126)
    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:141)
    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:360)
    5. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
    6. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
    7. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
    7 frames
  5. org.vaya_group.charactertest
    result.onCreate
    1. org.vaya_group.charactertest.result.onCreate(result.java:86)
    1 frame
  6. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Activity.performCreate(Activity.java:5008)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2035)
    3 frames