java.lang.RuntimeException

Unable to pause activity {com.app/com.app.MainActivity}: android.os.NetworkOnMainThreadException

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web36115

  • via GitHub by tonypeng
    , 9 months ago
    Unable to pause activity {com.app/com.app.MainActivity}: android.os.NetworkOnMainThreadException
  • Unable to start activity ComponentInfo{com.app/com.app.MainActivity}: java.lang.NullPointerException
  • Unable to pause activity {com.myapp/com.myapp.MainActivity}: android.os.NetworkOnMainThreadException
  • Stack trace

    • java.lang.RuntimeException: Unable to pause activity {com.app/com.app.MainActivity}: android.os.NetworkOnMainThreadException at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:3722) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3688) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3662) at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3636)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    6 times, 7 months ago
    Once, 3 weeks ago
    12 times, 1 month ago
    3 times, 1 month ago
    3 times, 2 months ago
    19 more bugmates