java.lang.RuntimeException: Unable to start activity ComponentInfo{com.avian.apps.avian/com.avian.apps.avian.LoginActivity}: android.os.NetworkOnMainThreadException

Stack Overflow | Agoeng Liu | 5 months ago
  1. 0

    Failed to remote server SQL SERVER using jdts

    Stack Overflow | 5 months ago | Agoeng Liu
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.avian.apps.avian/com.avian.apps.avian.LoginActivity}: android.os.NetworkOnMainThreadException
  2. 0

    Android SOAP wsdl

    Stack Overflow | 3 years ago | user2742861
    android.os.NetworkOnMainThreadException
  3. 0

    Android HttpGet request

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

    Automated exception search integrated into your IDE

  5. 0

    how to call php script from android application

    Stack Overflow | 3 years ago | Nedimo
    android.os.NetworkOnMainThreadException
  6. 0

    HTTPclient inputstream crashes android app

    Stack Overflow | 3 years ago | Jan Manaloto
    java.lang.RuntimeException: Unable to start activity ComponentInfo{android.janime/android.janime.MainActivity}: android.os.NetworkOnMainThreadException

  1. bluebunnty 2 times, last 1 week ago
  2. dealloc 2 times, last 2 weeks ago
  3. Alexandru Popa 3 times, last 3 weeks ago
  4. filpgame 1 times, last 1 month ago
  5. jk 5 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:1118)
    1 frame
  3. Android
    IoBridge.connect
    1. libcore.io.BlockGuardOs.connect(BlockGuardOs.java:84)
    2. libcore.io.IoBridge.connectErrno(IoBridge.java:131)
    3. libcore.io.IoBridge.connect(IoBridge.java:116)
    3 frames
  4. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
    3. java.net.Socket.connect(Socket.java:847)
    3 frames
  5. jTDS
    Driver.connect
    1. net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:288)
    2. net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:251)
    3. net.sourceforge.jtds.jdbc.JtdsConnection.<init>(JtdsConnection.java:331)
    4. net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)
    4 frames
  6. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:175)
    2. java.sql.DriverManager.getConnection(DriverManager.java:209)
    2 frames
  7. com.avian.apps
    LoginActivity.onCreate
    1. com.avian.apps.avian.ConnectionClass.getConnection(ConnectionClass.java:25)
    2. com.avian.apps.avian.LoginActivity.onCreate(LoginActivity.java:36)
    2 frames
  8. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5117)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2150)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2236)
    5. android.app.ActivityThread.access$600(ActivityThread.java:145)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)
    7. android.os.Handler.dispatchMessage(Handler.java:99)
    8. android.os.Looper.loop(Looper.java:137)
    9. android.app.ActivityThread.main(ActivityThread.java:5099)
    9 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:803)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:570)
    2 frames
  11. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame