13 - JSON Parsing, NetworkOnMainThreadException, AsyncTask - Android Studio  @hishammuneer
13 - JSON Parsing, NetworkOnMainThreadException, AsyncTask - Android Studio  @hishammuneer
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
13 - JSON Parsing, NetworkOnMainThreadException, AsyncTask - Android Studio @hishammuneer14 - JSON Parsing, Finally Parsing JSON - Android Studio @hishammuneer12 - JSON Parsing, Creating a URLConnection - Android Studio @hishammuneer11 - Introduction to JSON, JSON vs XML, JSONObjects & JsonArrays - Android Studio @hishammuneer10 - How to display images in your app using ImageView - Android Studio @hishammuneer9 - Weight and Gravity, XML Design - Android Studio @hishammuneer8 - Views and View Groups - Android Studio @hishammuneer6 - Menu Options - Android Studio @hishammuneer7 - Activity Lifecycle and Log - Android Studio @hishammuneer5 -  Project Structure of Android - Android Studio @hishammuneer4 - ListView and Adapters - Android Studio @hishammuneer3 - Display a Toast Message - Android Studio @hishammuneer2 - TextView, EditText, Button and OnClickListener - Android Studio @hishammuneer1 - Creating Your First Android Project - Android Studio @hishammuneerLIFT @hishammuneer6. Coroutines for background processing @hishammuneer7. LiveData to observe and pass data to our view @hishammuneer5. Creating an HttpClient to parse JSONObjects and JSONArrays @hishammuneer8. GSON for converting JSON to POJOs @hishammuneer4. Returning Dummy data to our View Model @hishammuneer9. Using Retrofit to make network call and GsonFactory to parse the data @hishammuneer10. Glide to load Images @hishammuneer11. How to parse a complex JSON using Plugins in Android Studio @hishammuneer3. Creating a Repository Pattern in Android @hishammuneer2. View Model | Android Architecture Components @hishammuneer1. What is Json | How to get started with View Binding @hishammuneerJSON Parsing using MVVM, ViewModel, LiveData and Coroutines in Kotlin - Android Development @hishammuneer30 - External storage  - Android Studio @hishammuneer29 - Internal storage - Android Studio @hishammuneer28 - Shared Prefrences - Android Studio @hishammuneer27 - Android SQLite Tutorial, Finally Running the app - Android Studio @hishammuneer26 - Android SQLite Tutorial, Calling CRUD Operations from UI - Android Studio @hishammuneer25 - Creating, Updating, Deleting and Querying database - Android Studio @hishammuneer24 - SQLiteOpenHelper and SQLiteDatabse - Android Studio @hishammuneer23 - Android SQLite Tutorial, SQLiteOpenHelper - Android Studio @hishammuneerJSON Parsing and Image Loading Tutorial - Android Studio @hishammuneer22 - Intent and Bundles - Android Studio @hishammuneer21 - GitHub Sharing - Android Studio @hishammuneer20 - Progress Dialog and Implementing GSON for Json Parsing - Android Studio @hishammuneer19 - Loading Image using UIL, ViewHolder Pattern - Android Studio @hishammuneer18 - Custom Adapter - Android Studio @hishammuneer17 - Custom ListView Designing - Android Studio @hishammuneer16 - JSON Parsing, Custom Models and Complex JSON- Android Studio @hishammuneer15 - JSON Parsing, Using For loop on JSONArray - Android Studio @hishammuneer

13 - JSON Parsing, NetworkOnMainThreadException, AsyncTask - Android Studio @hishammuneer