android.os.NetworkOnMainThreadException [duplicate]

It is because you are performing network operation on main thread of activity. Using Async task will be a better option.

Browse More Popular Posts

Leave a Comment