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

An odd human being who happens to have a variety of ever-changing interests, but right now they are programming, making up silly song/rap lyrics, K-pop, drawing, creating unique dessert/drink flavors, obsessing about finding out how some things works, automation, anime, video games... Ran online dessert shops Cookies PH and Catzie's Cakery in her past life.

Leave a Reply

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