android.os.NetworkOnMainThreadException

GitHub | SolaBe | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 7#194532183

    GitHub | 1 year ago | SolaBe
    android.os.NetworkOnMainThreadException
  2. 0

    Android 4.0 crashes on return from login

    GitHub | 5 years ago | vishl
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=32665, result=-1, data=Intent { (has extras) }} to activity {com.trypico.cdvfb/com.trypico.cdvfb.MainActivity}: android.os.NetworkOnMainThreadException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android Facebook sdk Log out error

    Stack Overflow | 3 years ago | user2576008
    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:1118)
    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. Android
    HttpsURLConnectionImpl.getInputStream
    1. libcore.net.http.HttpConnection.<init>(HttpConnection.java:70)
    2. libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
    3. libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340)
    4. libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
    5. libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
    6. libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:315)
    7. libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:461)
    8. libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:433)
    9. libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:289)
    10. libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:239)
    11. libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:273)
    12. libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:168)
    13. libcore.net.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:271)
    13 frames
  5. com.olodroid.meme
    FragmentUserTemplate$1.onImagesChosen
    1. com.olodroid.meme.fragments.FragmentUserTemplate$2.loadInBackground(FragmentUserTemplate.java:150)
    2. com.olodroid.meme.fragments.FragmentUserTemplate$2.loadInBackground(FragmentUserTemplate.java:143)
    3. com.olodroid.meme.fragments.FragmentUserTemplate.loadImageWithURL(FragmentUserTemplate.java:159)
    4. com.olodroid.meme.fragments.FragmentUserTemplate.access$100(FragmentUserTemplate.java:54)
    5. com.olodroid.meme.fragments.FragmentUserTemplate$1.onImagesChosen(FragmentUserTemplate.java:104)
    5 frames
  6. com.kbeanie.multipicker
    ImageProcessorThread$1.run
    1. com.kbeanie.multipicker.core.threads.ImageProcessorThread$1.run(ImageProcessorThread.java:49)
    1 frame
  7. Android Platform
    ActivityThread.main
    1. android.os.Handler.handleCallback(Handler.java:615)
    2. android.os.Handler.dispatchMessage(Handler.java:92)
    3. android.os.Looper.loop(Looper.java:137)
    4. android.app.ActivityThread.main(ActivityThread.java:4960)
    4 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Method.java)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
    2 frames
  10. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(NativeStart.java)
    1 frame