if you get the network on main thread exception while working with the android application just add below two lines of code in oncreate methodof the android activity.
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
Thanks... for your solution
ReplyDelete@Gurucharan: you are welcome...:)
ReplyDelete