Android NetworkOnMainThreadException at StrictMode fix (with deprecated methods used)

A JSON Parser developed by some members of the Android dev team. But a few weeks after completion of the parser, several methods became deprecated.

And when we use that parser, we get errors. Part of the stack trace is as follows:

Not sure if the NetworkOnMainThreadException is being thrown because of the deprecated methods but the following code is what prevents our app from getting the error.

Related Posts:

Posts that may be related to "Android NetworkOnMainThreadException at StrictMode fix (with deprecated methods used)":

Catzie

A Filipino programmer with a variety of interests such as baking, singing, making up silly song/rap lyrics, K-pop, drawing, creating unique dessert flavors, obsessing about finding out how some things works, board games, anime, video games, and forgetting things that usually go in her long list of interests. Running small-time online dessert shops Cookies PH and Catzie's Cakery.

Leave a Reply

Your email address will not be published. Required fields are marked *