Código:
Alguien sabe cual es el problema, gracias de antemano...01-17 16:03:49.590: E/AndroidRuntime(1072): FATAL EXCEPTION: main 01-17 16:03:49.590: E/AndroidRuntime(1072): android.os.NetworkOnMainThreadException 01-17 16:03:49.590: E/AndroidRuntime(1072): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1117) 01-17 16:03:49.590: E/AndroidRuntime(1072): at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:84) 01-17 16:03:49.590: E/AndroidRuntime(1072): at libcore.io.IoBridge.connectErrno(IoBridge.java:127) 01-17 16:03:49.590: E/AndroidRuntime(1072): at libcore.io.IoBridge.connect(IoBridge.java:112) 01-17 16:03:49.590: E/AndroidRuntime(1072): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192) 01-17 16:03:49.590: E/AndroidRuntime(1072): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459) 01-17 16:03:49.590: E/AndroidRuntime(1072): at java.net.Socket.connect(Socket.java:842) 01-17 16:03:49.590: E/AndroidRuntime(1072): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119) 01-17 16:03:49.590: E/AndroidRuntime(1072): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144) 01-17 16:03:49.590: E/AndroidRuntime(1072): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) 01-17 16:03:49.590: E/AndroidRuntime(1072): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) 01-17 16:03:49.590: E/AndroidRuntime(1072): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360) 01-17 16:03:49.590: E/AndroidRuntime(1072): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555) 01-17 16:03:49.590: E/AndroidRuntime(1072): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487) 01-17 16:03:49.590: E/AndroidRuntime(1072): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465) 01-17 16:03:49.590: E/AndroidRuntime(1072): at com.example.taller06oct.JSONParser.makeHttpRequest(JSONParser.java:62) 01-17 16:03:49.590: E/AndroidRuntime(1072): at com.example.taller06oct.EditEmpleadosActivity$GetEmpleadoDetails$1.run(EditEmpleadosActivity.java:134) 01-17 16:03:49.590: E/AndroidRuntime(1072): at android.os.Handler.handleCallback(Handler.java:725) 01-17 16:03:49.590: E/AndroidRuntime(1072): at android.os.Handler.dispatchMessage(Handler.java:92) 01-17 16:03:49.590: E/AndroidRuntime(1072): at android.os.Looper.loop(Looper.java:137) 01-17 16:03:49.590: E/AndroidRuntime(1072): at android.app.ActivityThread.main(ActivityThread.java:5039) 01-17 16:03:49.590: E/AndroidRuntime(1072): at java.lang.reflect.Method.invokeNative(Native Method) 01-17 16:03:49.590: E/AndroidRuntime(1072): at java.lang.reflect.Method.invoke(Method.java:511) 01-17 16:03:49.590: E/AndroidRuntime(1072): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 01-17 16:03:49.590: E/AndroidRuntime(1072): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 01-17 16:03:49.590: E/AndroidRuntime(1072): at dalvik.system.NativeStart.main(Native Method)
Cabe mencionar que lo estoy emulando con eclipse...