java.lang.RuntimeException: Unable to start receiver pi.blackoutwidget.Temperature: android.os.NetworkOnMainThreadException

Stack Overflow | paolo pace | 2 months ago
  1. 0

    My url temperature widget not working

    Stack Overflow | 2 months ago | paolo pace
    java.lang.RuntimeException: Unable to start receiver pi.blackoutwidget.Temperature: android.os.NetworkOnMainThreadException
  2. 0

    my android app is crashing at the start

    Stack Overflow | 3 years ago | marsu0601
    java.lang.RuntimeException: Unable to start activity ComponentInfo{gsb.listegsb/gsb.listegsb.MainActivity}: android.os.NetworkOnMainThreadException
  3. 0

    Can't invoke URL on Android

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

    Automated exception search integrated into your IDE

  5. 0

    Mysql database search through php and android

    Stack Overflow | 1 year ago | Lokke
    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:1147)
    1 frame
  3. Android
    IoBridge.connect
    1. libcore.io.BlockGuardOs.connect(BlockGuardOs.java:110)
    2. libcore.io.IoBridge.connectErrno(IoBridge.java:137)
    3. libcore.io.IoBridge.connect(IoBridge.java:122)
    3 frames
  4. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456)
    3. java.net.Socket.connect(Socket.java:882)
    3 frames
  5. Android
    HttpURLConnectionImpl.getInputStream
    1. com.android.okhttp.internal.Platform.connectSocket(Platform.java:174)
    2. com.android.okhttp.Connection.connect(Connection.java:152)
    3. com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)
    4. com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
    5. com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
    6. com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332)
    7. com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:199)
    7 frames
  6. Java RT
    URL.openStream
    1. java.net.URL.openStream(URL.java:470)
    1 frame
  7. pi.blackoutwidget
    Temperature.onUpdate
    1. pi.blackoutwidget.Temperature.updateAppWidget(Temperature.java:28)
    2. pi.blackoutwidget.Temperature.onUpdate(Temperature.java:48)
    2 frames
  8. Android Platform
    ActivityThread.handleReceiver
    1. android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:66)
    2. android.app.ActivityThread.handleReceiver(ActivityThread.java:2654)
    2 frames