Hisham Muneer | 13 - JSON Parsing, NetworkOnMainThreadException, AsyncTask - Android Studio @hishammuneer | Uploaded 8 years ago | Updated October 02 2023
Watch all videos of this series: https://www.youtube.com/playlist?list=PLgjt1h_kabFebUn1anGYZ6_Tfkw64Ww12
We get a NetworkOnMainThreadException if try to make a network call on main thread, we will also see how we can resolve this exception in Android.
AsyncTask is ideal for short operations (a couple of seconds), For long running tasks in the background use a services in Android.
We will also see what is SecurityException and how your apps need to mention permissions in AndroidManifest.xml file.
Finally we will run our app and will parse result.
NEW LINKS:
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoItem.txt
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoList.txt
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesData.txt
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
Watch all videos of this series: https://www.youtube.com/playlist?list=PLgjt1h_kabFebUn1anGYZ6_Tfkw64Ww12
We get a NetworkOnMainThreadException if try to make a network call on main thread, we will also see how we can resolve this exception in Android.
AsyncTask is ideal for short operations (a couple of seconds), For long running tasks in the background use a services in Android.
We will also see what is SecurityException and how your apps need to mention permissions in AndroidManifest.xml file.
Finally we will run our app and will parse result.
NEW LINKS:
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoItem.txt
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoList.txt
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesData.txt
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo