I have writen about StrictMode before.
In case you have not noticed; StrictMode for network access results in a fatal error as for Android 3.0 (Honeycomb) or later, unless your app is targeting an API version before Honeycomb.
The right way of solving this is to use Android AsyncTask for network access.
The lazy way of handling this is to turn the check of:
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
For my Android Network tutorial I use the lazy way because I don’t want to force the reader to learn both things at the same time.
But I recommend you learn Android Background Processing.
I hope this helps.