java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • My url temperature widget not working
    via Stack Overflow by paolo pace
    ,
  • my android app is crashing at the start
    via Stack Overflow by marsu0601
    ,
  • Can't invoke URL on Android
    via Stack Overflow by fralexxelarf
    ,
  • Mysql database search through php and android
    via Stack Overflow by Lokke
    ,
  • Android sign up user on database
    via Stack Overflow by Anup396
    ,
  • FATAL EXCEPTION: main , MainActivity.java
    via Stack Overflow by Max Matrix
    ,
    • java.lang.RuntimeException: Unable to start receiver pi.blackoutwidget.Temperature: android.os.NetworkOnMainThreadException at android.app.ActivityThread.handleReceiver(ActivityThread.java:2661) at android.app.ActivityThread.access$1800(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1398) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5310) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102) Caused by: android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1147) at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:110) at libcore.io.IoBridge.connectErrno(IoBridge.java:137) at libcore.io.IoBridge.connect(IoBridge.java:122) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456) at java.net.Socket.connect(Socket.java:882) at com.android.okhttp.internal.Platform.connectSocket(Platform.java:174) at com.android.okhttp.Connection.connect(Connection.java:152) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211) at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382) at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332) at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:199) at java.net.URL.openStream(URL.java:470) at pi.blackoutwidget.Temperature.updateAppWidget(Temperature.java:28) at pi.blackoutwidget.Temperature.onUpdate(Temperature.java:48) at android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:66) at android.app.ActivityThread.handleReceiver(ActivityThread.java:2654)

    Users with the same issue

    Unknown visitor1 times, last one,
    Hiren Amaliyar
    6 times, last one,
    Indri Yunita
    6 times, last one,
    justCodeit
    7 times, last one,
    Adrien
    4 times, last one,
    38 more bugmates