{"id":2219,"date":"2017-03-27T06:46:26","date_gmt":"2017-03-27T10:46:26","guid":{"rendered":"https:\/\/cindypotvin.com\/?p=2219"},"modified":"2017-06-03T22:17:14","modified_gmt":"2017-06-04T02:17:14","slug":"fixing-the-networkonmainthread-exception-in-your-android-app-with-asynctask","status":"publish","type":"post","link":"https:\/\/cindypotvin.com\/fixing-the-networkonmainthread-exception-in-your-android-app-with-asynctask\/","title":{"rendered":"Fixing the NetworkOnMainThread exception in your Android app with AsyncTask"},"content":{"rendered":"

As soon as you start doing long-running operations such as network calls or anything else that can take more than a few seconds in your Android application, you’ll come across one of the following problems:<\/p>\n