android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1131)
It seems you've attempted to invoke blocking network api's on the UI thread of your application.
In Android 3.0 and above version there is a new application policy that don't allows the execution of networking calls on the main thread.
Please go through http://developer.android.com/reference/android/os/StrictMode.html.
You can disable strictmode by putting following folling snippet.(I would not recommed this approach in production environment.)
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);