This exception occurs when you write network code on main thread (UI thread). It will throw following exception android.os.NetworkOnMainThreadException Solution:-
Leading IT Company
This exception occurs when you write network code on main thread (UI thread). It will throw following exception android.os.NetworkOnMainThreadException Solution:-