Android API Call without any third party Library
In Android when you want some API call and you are creating a HTTP request then you always get NetworkOnMainThreadException. This exception is raised due to request is created on main thread, Main thread is used for Application internal…